docs(aio): remove duplicate as (#16265)

the word `as` incorrectly appears consecutively
This commit is contained in:
swseverance 2017-04-24 12:51:38 -04:00 committed by Miško Hevery
parent d7719aa0f5
commit 2991221551

View File

@ -341,7 +341,7 @@ You don't really need a dedicated method to wrap one line. Write it anyway:
You might be tempted to call the `getHeroes()` method in a constructor, but You might be tempted to call the `getHeroes()` method in a constructor, but
a constructor should not contain complex logic, a constructor should not contain complex logic,
especially a constructor that calls a server, such as as a data access method. especially a constructor that calls a server, such as a data access method.
The constructor is for simple initializations, like wiring constructor parameters to properties. The constructor is for simple initializations, like wiring constructor parameters to properties.
To have Angular call `getHeroes()`, you can implement the Angular *ngOnInit lifecycle hook*. To have Angular call `getHeroes()`, you can implement the Angular *ngOnInit lifecycle hook*.