See Resume
- OKLCH => new way of define color in CSS (experimental)
- Component concept & config
- String interpolation
{{}} - Property binding (for attributes)
<img [src]='myValue'>. By adding 'attr' in front of the attribute name you want to bind dynamically, you're "telling" Angular that it shouldn't try to find a property with the specified name but instead bind the respective attribute - in the example above, the aria-valuenow and aria-valuemax attributes would be bound dynamically.[attr.aria-valuenow]="currentVal" [attr.aria-valuemax]="maxVal" - So called 'getter' :
get myValue(){return myValue} - Event listeners
(click)="myMethod"and Event handlers. - State
- Zone.js vs Signal (<= Angular v.16)
- Use
setto update a valuethis.selectedUser.set()and useselectedUseras a function :{{selectedUser().name}} - computed (to use with signal)
- Bind properties from parent to child with
@Input()decorator. - Bind properties from child to parent with
@Output()decorator. - New signal method
input()coupled withcomputed(). - New method
output(). - Use of ? and !
@Input() name?:string; - Outsourcing; so-called
typealias &interface. - Two-way binding
<input [(ngModel)]> - Intro to
Directiveconcept. <ng-content>- Pipes
- Dependency injections: Services.
- Use localStorage in the tasks.service constructor.
- NodeJS with Homebreww
brew install node - Angular cli (sudo)
npm i @angular/cli - VS Code extensions : ** Angular Language Service ** Angular Essentails by John Papa
- Create a new Angular project
ng new myFolder/my-new-project
This project was generated with Angular CLI version 18.2.4.
Run ng serve for a dev server. Navigate to http://localhost:4200/. The application will automatically reload if you change any of the source files.
Run ng generate component component-name to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module.
Run ng build to build the project. The build artifacts will be stored in the dist/ directory.
Run ng test to execute the unit tests via Karma.
Run ng e2e to execute the end-to-end tests via a platform of your choice. To use this command, you need to first add a package that implements end-to-end testing capabilities.
To get more help on the Angular CLI use ng help or go check out the Angular CLI Overview and Command Reference page.