Created
July 21, 2014 15:12
-
-
Save sashless/2314ee14844ff2c42d47 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var app = angular.module('scholarApp.controllers'); | |
var NavCtrl = function($scope, $location) { | |
... | |
}; | |
// A nicer explicit dependency injection syntax | |
NavCtrl.$inject = ['$scope', '$location']; | |
app.controller('NavCtrl', NavCtrl); | |
/** | |
the other way way | |
**/ | |
var app = angular.module('scholarApp.controllers'); | |
app.controller('NavCtrl', function($scope, $location) { | |
.. | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment