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
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -89,7 +89,7 @@ Initially each SPA loads `index.html` file. In the case of AngularJS this file c
89
89
<scriptsrc="angular.js"></script>
90
90
</body>
91
91
</html>
92
-
````
92
+
```
93
93
94
94
With AngularJS expressions partials define what kind of actions should be performed for handling different user interactions. In the example above the value of the attribute `ng-click` states that the method `changeFoo` of the current *scope* will be invoked.
95
95
@@ -107,7 +107,7 @@ function MyController($scope) {
107
107
alert('Foo changed');
108
108
};
109
109
}
110
-
````
110
+
```
111
111
112
112
For example, if we wire the sample controller above with the partial provided in the previous section the user will be able to interact with the application in few different ways.
113
113
@@ -942,7 +942,7 @@ function ChildCtrl($scope, User) {
942
942
}
943
943
```
944
944
945
-
This example aims to illustrates the most trivial way to reuse logic by using a base controller, anyway in production applications I don't recommend you to put your authorization logic in the controllers. The access to the different routes could be determined on a higher level of abstraction.
945
+
This example aims to illustrates the most trivial way to reuse logic by using a base controller, anyway in production applications I don't recommend you to put your authorization logic in the controllers. The access to the different routes could be determined on a higher level of abstraction.
946
946
947
947
The `ChildCtrl` is responsible for handling actions such as clicking the button with label `"Click"` and exposing the model to the view, by attaching it to the scope.
0 commit comments