- By Kobi Hari (27/06/2024)
Please feel free to contact me for questions, or just to have a chat :-)
- Kobi Hari - hari@applicolors.com
Our Projects | here |
Our Presentation | here |
- How to Inject using the function
- What is the Injection Context and how it affects using the function
- Where can we, and where can we not, use the
inject
function - Creating our own injection context using
runInInjectionContext
- The
DestroyRef
and how it is used
- Understanding standalone component
- Bootstrapping applications without modules
- Importing providers in the new paradigm
- Understanding Environment injetors
- The 2 types of lazy loading:
loadComponent
andloadChildren
- Control flow in Angular 17
- Lazy loading using
@defer
- Directive Composition
- Router inputs
- Functional Guards
- Functional Resolvers
- What is a signal
- The
signal
function - The
computed
function - The
set
andupdate
functions - The
mutate
function - The
effect
function - Where can we create signals
- The limitations of using signals
- convert an observable into signal with the
toSignal
function - convert a signal into observable with the
toObservable
function - Use them both with caution - mind the injection context
- Signals slowly replace the classic angular decorators
- use
readonly caption = input('hello')
to create an input called `caption' with a default value of 'hello' - use
readonly caption = input.required<string>()
to create a required input - use the
output
function to create an output event emitter that is also a signal - use the
model
function to create a two-way binding (input + output)- You can use it like input and respond to changes in it using an effect
- You can use it like output and push events into it
- The consumer can use 3 types of bindings into it:
<app-comp [caption]="value"/>
<app-comp (captionChanged)="doSomething()"/>
<app-comp [(caption)]="writeableSignal"/>
- use the
viewChild()
,viewChildren
,contentChild
,contentChildren
functions to query the view and content into a signal