Angular University 🅰️ (@angularuniv) 's Twitter Profile
Angular University 🅰️

@angularuniv

High-quality Angular Courses. Learn and keep up with the Angular Ecosystem. Helpdesk: [email protected]

ID: 712271636305674240

linkhttps://angular-university.io calendar_today22-03-2016 13:36:06

7,7K Tweet

7,7K Takipçi

1,1K Takip Edilen

Angular University 🅰️ (@angularuniv) 's Twitter Profile Photo

🚀 A cleaner alternative to *ngIf: the doi.eth syntax! It's more intuitive, supports else if, and requires no imports. Example: @Component({ template: ` doi.eth (showHello) { <h2>Hello</h2> } @else { <h2>Goodbye</h2> } `, }) class Test { showHello = true; } Why is this better + what

🚀 A cleaner alternative to *ngIf: the <a href="/if/">doi.eth</a> syntax!
It's more intuitive, supports else if, and requires no imports.

Example:

@Component({
template: `
<a href="/if/">doi.eth</a> (showHello) {
&lt;h2&gt;Hello&lt;/h2&gt;
} @else {
&lt;h2&gt;Goodbye&lt;/h2&gt;
}
`,
})
class Test {
showHello = true;
}

Why is this better + what