It's AngularJS limitation.
You cannot call function outside AngularJS.
you can wrap window.alert function inside your controller function.
Also, you need to set your controller above ons-navigator.
If you use, ons-navigator-toolbar, its scope is not the page but the navigator scope. This is current limitation of Onsen UI, it is being resolved in the next version.