Please enable JavaScript.
Coggle requires JavaScript to display documents.
Angular (Tour of Heroes (Add in-app navigation with routing…
Angular
Tour of Heroes
-
-
-
Display a selection list
-
-
Master/Detail
clicks a hero in the master list, the component should display the selected hero's details at the bottom of the page
-
-
-
-
-
Get data from a server
-
-
Heroes and HTTP
-
-
-
-
-
Tap into the Observable
RxJS tap() operator, which looks at the observable values, does something with those values, and passes them along
-
-
Agular Concepts
Components
Every Angular application has at least one component, the root component that connects a component hierarchy with the page document object model (DOM).
-
-
data binding
-
classify
Event binding ( ) lets your app respond to user input in the target environment by updating your application data.
Property binding [ ] lets you interpolate values that are computed from your application data into the HTML.
-
Two-way data binding (used mainly in template-driven forms) combines property and event binding in a single notation [(ngModel)]
-
Pipes
-
To specify a value transformation in an HTML template, use the pipe operator (|).
-
-
Pipes are a good way to format strings, currency amounts, dates and other display data. Angular ships with several built-in pipes and you can create your own.
Annotation
Component is a decorator function that specifies the Angular metadata for the component.
Services and DI
A service class definition is immediately preceded by the Injectable() decorator
-
-
-
Modules
NgModule
An NgModule is defined by a class decorated with NgModule()
properties
declarations
Khai báo các componet, directtive, pile của module này
-
-
-
-
-
-
-
-
-
-