| fun-with-directives | Introduction to Element Directives |
| movies-server | Example of using json-server for mock server |
| fun-with-http | Example of using HttpClient for http access from angular apps |
- We talked about what is a directive and how it works internaly
- We talked about
ElementRefand how to pass it to the directive and use it to change the properties of the host - We talked about the Renderer and why it is needed
- We talked about how to use
HostBindingto affect the host properties - We talked about
HostListernerand how to use it to register to host events - We talked about how to pass event data to
HostListenerfunctions - We talked about how to pass inputs to the directives
- We saw how to define events as output of directives
- We talked about how to use the shortcut syntax for inputs that have the same name as the directive
- We talked about the
selectorproperty and the fact that we can use any CSS selector to select the directive - We saw how to use
exportAsto expose the directive the the using template so it can bind to its properties
- We talked about the structure of Http Request - Verb, URL, Header, Body
- We used
HttpClientModuleto provide our services with theHttpClientservice - We used the
HttpClientService to create web requests to an online service - We saw that the
HttpClientmethods all return Observables - We saw that it is preferable to use the
toPromiseoperator, to convert the observable to promise. - We understood that toPromise is about to be depricated and replaced with:
- firstValueFrom
- lastValueFrom
- We saw how to create development server using the
json-servertool