in my error, iI have already made sure that it is included in my scripts and is accessible ( iI can open it from chrome-debugger > sources > mvProfileCtrl.jschrome-debugger > sources > mvProfileCtrl.js ) so it is available for referencing iI guess. butBut still here are the two relevant files -:
angular.module('app').controller('navBarLoginController',function($scope,$http,mvIdentity,mvNotifier,mvAuth,mvProfileCtrl,$location) {
$scope.identity = mvIdentity;
$scope.signin = function(username,password) {
mvAuth.authenticateUser(username,password).then(function(success){
if(success){
mvNotifier.notify('You have successfully signed in!');
}else{
mvNotifier.notify('Username/Password combination incorrect');
}
})
}
var profile = mvProfileCtrl;
$scope.update = function(){
profile.listen(mvIdentity.currentUser);
}
$scope.signout = function() {
mvAuth.logoutUser().then(function() {
$scope.username = "";
$scope.password = "";
mvNotifier.notify('You have successfully signed out!');
$location.path('/');
})
}
})
and mvProfileCtrl.jsmvProfileCtrl.js -
script(type="text/javascript", src="/vendor/jquery/dist/jquery.js")
script(type="text/javascript", src="/vendor/toastr/toastr.js")
script(type="text/javascript", src="/vendor/angular/angular.js")
script(type="text/javascript", src="/vendor/angular-resource/angular-resource.js")
script(type="text/javascript", src="/vendor/angular-route/angular-route.js")
script(type="text/javascript", src="/vendor/bootstrap/dist/js/bootstrap.js")
script(type="text/javascript", src="/vendor/bootstrap/js/dropdown.js")
script(type="text/javascript", src="/app/app.js")
script(type="text/javascript", src="/plugins/backstretch/jquery.backstretch.min.js")
script(type="text/javascript", src="/plugins/bxslider/jquery.bxslider.min.js")
script(type="text/javascript", src="/plugins/bxslider/jquery.bxslider.min.js")
script(type="text/javascript", src="/app/account/navBarLoginController.js")
script(type="text/javascript", src="/app/common/mvNotifier.js")
script(type="text/javascript", src="/app/account/mvIdentity.js")
script(type="text/javascript", src="/app/account/mvauth.js")
script(type="text/javascript", src="/app/account/mvUser.js")
script(type="text/javascript", src="/app/admin/mvUserListCtrl.js")
script(type="text/javascript", src="/app/account/mvSignupCtrl.js")
script(type="text/javascript", src="/app/account/mvProfileCtrl.js")