In AngularJs, you never see any JavaScript for views. Instead, you simply invoke the ngView directive in the template. Any custom view logic must be implemented in the controller in charge of it.
ngView