Professional Documents
Culture Documents
2 Workshop5 - Angular Typescript
2 Workshop5 - Angular Typescript
Email : ma.mezghich@smart-it-partner.com
Phone : +216 51 36 36 34
TypeScript basics
Email : ma.mezghich@smart-it-partner.com
Phone : +216 51 36 36 34
Email : ma.mezghich@smart-it-partner.com
Phone : +216 51 36 36 34
Email : ma.mezghich@smart-it-partner.com
Phone : +216 51 36 36 34
We sill generate js from typescript but we can catch the issue earlier at compile time
Email : ma.mezghich@smart-it-partner.com
Phone : +216 51 36 36 34
On caste un type à une variable (type any) pour avoir les intellisence(code completion,
parameter info, quick info, and member lists. IntelliSense features are sometimes called by other
names such as "code completion", "content assist", and "code hinting.")
Email : ma.mezghich@smart-it-partner.com
Phone : +216 51 36 36 34
Les interfaces : des modèle d’objet avec des méthodes abstraites si elles existent
Trainning: Springboot & Angular 8 Workshop n° 5: Angular 8
Email : ma.mezghich@smart-it-partner.com
Phone : +216 51 36 36 34
Les objets :
Trainning: Springboot & Angular 8 Workshop n° 5: Angular 8
Email : ma.mezghich@smart-it-partner.com
Phone : +216 51 36 36 34
Email : ma.mezghich@smart-it-partner.com
Phone : +216 51 36 36 34
Accès Modifiers
Constructor
Email : ma.mezghich@smart-it-partner.com
Phone : +216 51 36 36 34
On peut initialiser les paramètres d’un constructeur sans déclarer des attributs, directement
dans le constructeur.
Trainning: Springboot & Angular 8 Workshop n° 5: Angular 8
Email : ma.mezghich@smart-it-partner.com
Phone : +216 51 36 36 34
Les properties
Trainning: Springboot & Angular 8 Workshop n° 5: Angular 8
Email : ma.mezghich@smart-it-partner.com
Phone : +216 51 36 36 34
Les modules en typescript (on va voir après les modules en angular) : C’est un fichier .ts, il peut
contenir une ou plusieurs classes. IL faut exporter la classe pour qu’elle soit visible de
l’extérieur; puis il faut l’importer pour l’utiliser
Trainning: Springboot & Angular 8 Workshop n° 5: Angular 8
Email : ma.mezghich@smart-it-partner.com
Phone : +216 51 36 36 34
Ici l’import
Email : ma.mezghich@smart-it-partner.com
Phone : +216 51 36 36 34