You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-5Lines changed: 4 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
*Opinionated AngularJS style guide for teams by [@john_papa](//twitter.com/john_papa)*
4
4
5
-
If you are looking for an opinionated style guide for syntax, conventions, and structuring AngularJS applications, then step right in. The styles contained here are based on my experience with [AngularJS](//angularjs.org), presentations, [Pluralsight training courses](http://pluralsight.com/training/Authors/Details/john-papa) and working in teams.
5
+
If you are looking for an opinionated style guide for syntax, conventions, and structuring AngularJS applications, then step right in. The styles contained here are based on my experience with [AngularJS](//angularjs.org), presentations, [Pluralsight training courses](http://pluralsight.com/training/Authors/Details/john-papa) and working in teams.
6
6
7
7
The purpose of this style guide is to provide guidance on building AngularJS applications by showing the conventions I use and, more importantly, why I choose them.
8
8
@@ -1089,13 +1089,13 @@ While this guide explains the *what*, *why* and *how*, I find it helpful to see
1089
1089
max:'='
1090
1090
},
1091
1091
link: linkFunc,
1092
-
controller :DirController,
1092
+
controller :ExampleController,
1093
1093
controllerAs:'vm'
1094
1094
};
1095
1095
return directive;
1096
1096
1097
-
/* @ngInject */
1098
-
functionDirController($scope) {
1097
+
ExampleController.$inject= ['$scope'];
1098
+
functionExampleController($scope) {
1099
1099
// Injecting $scope just for comparison
1100
1100
/* jshint validthis:true */
1101
1101
var vm =this;
@@ -1107,7 +1107,6 @@ While this guide explains the *what*, *why* and *how*, I find it helpful to see
0 commit comments