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-3
Original file line number
Diff line number
Diff line change
@@ -273,7 +273,7 @@ Controllers should only be used alongside components, never anywhere else. If yo
273
273
Here are some advisories for using `Class` for controllers:
274
274
275
275
* Always use the `constructor` for dependency injection purposes
276
-
* Don't export the `Class` directly, export it's name to allow `$inject` annotations
276
+
* Don't export the `Class` directly, export its name to allow `$inject` annotations
277
277
* If you need to access the lexical scope, use arrow functions
278
278
* Alternatively to arrow functions, `let ctrl = this;` is also acceptable and may make more sense depending on the use case
279
279
* Bind all public functions directly to the `Class`
@@ -309,7 +309,7 @@ Let's define what we'd call a "stateful component".
309
309
* Renders child components that mutate state
310
310
* Also referred to as smart/container components
311
311
312
-
An example of a stateful component, complete with it's low-level module definition (this is only for demonstration, so some code has been omitted for brevity):
312
+
An example of a stateful component, complete with its low-level module definition (this is only for demonstration, so some code has been omitted for brevity):
313
313
314
314
```js
315
315
/* ----- todo/todo.component.js ----- */
@@ -381,7 +381,7 @@ Let's define what we'd call a "stateless component".
381
381
* Data enters the component through attribute bindings (inputs)
382
382
* Data leaves the component through events (outputs)
383
383
* Mutates state, passes data back up on-demand (such as a click or submit event)
384
-
* Doesn't care where data comes from, it's stateless
384
+
* Doesn't care where data comes from, its stateless
385
385
* Are highly reusable components
386
386
* Also referred to as dumb/presentational components
0 commit comments