Top "Angular" questions

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

Angular CLI Error: The serve command requires to be run in an Angular project, but a project definition could not be found

When running the terminal commands ng server or ng serve --live-reload=true, I'm getting this issue: The serve command requires …

angular angular5 angular-cli
Checking version of angular-cli that's installed?

Is there a way to check the specific version of angular-cli that's installed globally on my machine? I'm in a …

node.js angular npm angular-cli
How to detect a route change in Angular?

I am looking to detect a route change in my AppComponent. Thereafter I will check the global user token to …

angular
How to add bootstrap to an angular-cli project

We want to use bootstrap 4 (4.0.0-alpha.2) in our app generated with angular-cli 1.0.0-beta.5 (w/ node v6.1.0). After getting bootstrap and …

angular twitter-bootstrap angular-cli ngx-bootstrap
remove item from stored array in angular 2

I want to remove an item from a stored array in angular 2, with Type Script. I am using a service …

javascript angular typescript
BehaviorSubject vs Observable?

I'm looking into Angular RxJs patterns and I don't understand the difference between a BehaviorSubject and an Observable. From my …

angular rxjs behaviorsubject rxjs-observables
Call a function on click event in Angular 2

How to declare a function inside a component (typescript) and call it on a click event in Angular 2? Following is …

javascript angular typescript
How to apply filters to *ngFor?

Apparently, Angular 2 will use pipes instead of filters as in Angular1 in conjunction with ng-for to filter results, although the …

angular typescript
Angular 2 Checkbox Two Way Data Binding

I´m fairly new to Angular2 and I have a little problem: In my Login-Component-HTML, I have two checkboxes, which …

html angular typescript checkbox data-binding
Angular 2 TypeScript how to find element in Array

I have a Component and a Service: Component: Service: @Injectable() export class PersonService { getPersons(){ var persons: Person[] = [ {id: 1, firstName:'Hans', …

angular typescript angular2-services