Skip to content

Instantly share code, notes, and snippets.

@msarchet
Created June 24, 2014 15:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save msarchet/ca295e42fa687d77cefe to your computer and use it in GitHub Desktop.
Save msarchet/ca295e42fa687d77cefe to your computer and use it in GitHub Desktop.
angular strict
<div ng-app='app' ng-strict-di>
<ng-view></ng-view>
</div>
(function() {
angular.module('app').controllers(function($log) {
$log.log('this is invalid');
})
})();
(function() {
angular.module('app').controllers(['$log', function(log) {
$log.log('this is valid');
}])
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment