Top "Angular" questions

Questions about Angular (not to be confused with AngularJS), the web framework from Google.

How to get `DOM Element` in Angular 2?

I have a component that has a <p> element. It's (click) event will change it into a <…

angular dom
Angular2 http.get() ,map(), subscribe() and observable pattern - basic understanding

Now, I have an initial page where I have three links. Once you click on the last 'friends' link, appropriate …

http angular rxjs
What is the best way to delete a component with CLI

I tried using "ng destroy component foo" and it tells me "The destroy command is not supported by Angular-CLI" How …

angular angular-cli
How to declare a variable in a template in Angular

I have the following template : <div> <span>{{aVariable}}</span> </div> and would …

html angular
Get current url in Angular

How can I get the current url in Angular 4? I've searched the web for it a lot, but am unable …

javascript angular typescript url-routing
How do I filter an array with TypeScript in Angular 2?

ng-2 parent-child data inheritance has been a difficulty for me. What seems that could be a fine working practical solution …

arrays filter typescript angular
How to go back last page

Is there a smart way to go back last page in Angular 2? Something like this._router.navigate(LASTPAGE); For example, …

angular angular2-routing
Angular error: "Can't bind to 'ngModel' since it isn't a known property of 'input'"

I'm using Angular 4 and I am getting an error in the console: Can't bind to 'ngModel' since it isn't a …

angular typescript angular-ngmodel angular-forms
How to check the Angular version?

I installed @angular/cli package via npm, using this command: npm install -g @angular/cli The version 1.4.2 of @angular/cli …

angular angular-cli