1.

How to write If Else and Then Conditions in Angular 4?

Answer»

If Else statement in Angular 4 can be written using following syntax-Open /src/app/app.components.ts:
EXPORT class AppComponent {
Title – ‘app works!;
}

Open /src/app/app.component.html

The user is logged in.
in order to login PLEAE CONTINUE.
Then statement can be write using following syntax-
please login to continue .
Hi ABC, logout now .



Discussion

No Comment Found