for e.g in my angular app
app.config(function($routeProvider, $locationProvider) {
$locationProvider.hashPrefix('!');
$routeProvider.when('/login', {
templateUrl: '../login',
controller: 'loginCtrl'
}).otherwise(...));
in this case my logictrl is in another js file. i want to include this when my path is /login. but this show loginCtrl is not a function.after some google i got loginCtrl js is not executed by ng-view.
how can i solve this. please help thankx in advance