How to use *ngIf else?

Angular 4 and 5: using else : you can also use then else : or then alone : Demo : Plunker Details: <ng-template>: is Angular’s own implementation of the <template> tag which is according to MDN : The HTML <template> element is a mechanism for holding client-side content that is not to be rendered when … Read more

Can’t bind to ‘formGroup’ since it isn’t a known property of ‘form’

RC6/RC7/Final release FIX To fix this error, you just need to import ReactiveFormsModule from @angular/forms in your module. Here’s the example of a basic module with ReactiveFormsModule import: To explain further, formGroup is a selector for directive named FormGroupDirective that is a part of ReactiveFormsModule, hence the need to import it. It is used to … Read more

AngularJS vs Angular [closed]

Let me preface by saying, I’m assuming you and everyone who will be reading this is already comfortably with Angular 1 (now referred to as AngularJS, as opposed to simply Angular for the newer versions). That being said, let’s get into some of the additions and key differences in Angular 2+. They added an angular … Read more