Question
What is wrong with my Angular code? I am getting: Cannot read property 'remove' of undefined at BrowserDomAdapter.removeClass ... HTML <ol class="breadcrumb"> <li *ngClass="{active: step==='step1'}" (click)="step='step1; '">Step1</li> <li *ngClass="{active: step==='step2'}"  (click)="step='step2'">Step2</li> <li *ngClass="{active: step==='step3'}" (click)="step='step3'">Step3</li> </ol>
in progress 0
4 months 1 Answer 87 views

Question
I'm creating a HTTP request on Angular, but I do not know how to add url arguments (query string) to it. this.http.get(StaticSettings.BASE_URL).subscribe( (response) => this.onGetForecastResult(response.json()), (error) => this.onGetForecastError(error.json()), () => this.onGetForecastComplete() ); Now my ...
in progress 0
3 months 1 Answer 61 views

Question
I wanted to start a simple hello world app for Angular. When I followed the instructions in the official quickstart the installation created 32,000 files in my project. I figured this is some mistake or I missed something, so I ...
in progress 0
4 months 1 Answer 64 views

Question
How can I tell which version of Angular I am using? I have tried: angular --version angular --v angular -version angular -v but get -bash: angular: command not found I know by yeoman --version that I am using 0.9.6 But ...
in progress 0
3 months 1 Answer 45 views

Question
I am a bit confused about how to get the key and value of an object in angular2 while using *ngFor for iterating over the object. I know in angular 1.x there is a syntax like ng-repeat="(key, value) in demo" but I ...
in progress 0
4 months 1 Answer 78 views

Question
I use angular2.0.0-beta.7. When a component is loaded on a path like /path?query=value1 it is redirected to /path. Why were the GET params removed? How can I preserve the parameters? I have an error in the routers. If I have ...
in progress 0
3 months 1 Answer 39 views

Question
I've built a basic app in Angular 2, but I have encountered a strange issue where I cannot inject a service into one of my components. It injects fine into any of the three other components I have created, however.
in progress 0
4 months 1 Answer 46 views

Question
In one of my Angular 2 routes's templates (FirstComponent) I have a button first.component.html Pass data and route My goal is to achieve: Button click -> route to another component while preserving data and without using the other component as ...
in progress 0
3 months 1 Answer 50 views