Top "Angular5" questions

Questions about Angular version 5, the web framework from Google.

How to create a url string with query parameters from an object in Angular 5+?

I am trying to create a URL from an object in an Angular 5 SPA. My code looks like the following: …

angular url angular5
Angular 5: remove route history

In my app I have a category page that has links to a various product list pages. If it turns …

angular5 angular-routing
Cannot create property 'validator' on string

I am trying to create an Angular 5 nested reactive form. I started by creating a flat form, which worked as …

angular angular5 angular-forms
Property interval does not exist in the type observable

ngAfterViewInit(){ Observable.interval(3000).timeInterval().subscribe()=>{}; } Trying to invoke the Observable.interval() method it is throwing a compiler error "Property …

angular rxjs angular5
Angular 6 - Why use @ngrx/store rather than service injection

I am recently learning Angular 6 with @ngrx/store while one of the tutorial is to use @ngrx/store for state …

angular5 angular6 ngrx-store state-management
How to inherit css styles in child component from parent in Angular 5

I have a parent component inside which I have a child component. The parent component have some css classes, where …

javascript html css angular angular5
Angular click select option in component test

I have tried the following to try to click an option in a select dropdown none of which work. selectEl = …

angular testing html-select angular5
How override Provider in Angular 5 for only one test?

In one of my unit test files, I have to mock several times the same service with different mocks. import { …

testing mocking angular5 provider testbed
Angular 5 ng-bootstrap Type 'ElementRef' is not generic err

I use angular 5 and ng-bootstrap in these versions: "private": true, "dependencies": { "@angular/animations": "^5.2.0", "@angular/common": "^5.2.0", "@angular/compiler": "^5.2.0", "@angular/core": "^5.2.0", "@angular/…

javascript node.js angular angular5 ng-bootstrap
Angular 5, httpclient ignores set cookie in post

I'm dealing with HttpClient in Angular 5, the problem is the cookie sent by the server during login process, it seems …

angular authentication angular5 setcookie