Quantcast
Channel: Active questions tagged angular8 - Stack Overflow
Browsing all 57 articles
Browse latest View live

Angular 8 how to pass current object and its index in change event

<pre><select (change)="getSelecteItem()"><option *ngFor="let item of sampleDropDown"> {{item.value}}</option></select><pre>public sampleDropDown = [{ id: '1', value:...

View Article



How to inject an array of a class through Injector.create

I've a component:export class PhotoComponent implements OnInit { constructor(private foo:Foo[]) { console.log(this.foo); }}I am trying to dynamically render this component in a parent Component like...

View Article

Angular Material: How to validate min and max values on a number field?

I am working on a small project written in Angular 8 and Angular Material.I have a number field where I want to specify min and max values, however I couldn't find any documentation on how to do that...

View Article

Angular cli showing error "An unhandled exception occurred: No projects...

I have a basic angular application , which was working fine. The ng serve and ng test commands were working fine. Recently as part of build automation for different environments , I introduced some...

View Article

Angular 9 : use external js script with condition

I'm new with Angular 9.I have an external js script, I got the url of this script from the back-end side by using the meta tag. I have a function return a boolean, I want when this method return true I...

View Article


How to pass database query in Angular Get API URL

I have below function in my service file which i am executing from Component, i want to prepare one get URL from below function.getStartEndTime(body) { const query = `select min(shiftstart)...

View Article

Test component with providers

I have a service SoundPanelService which is used in service isolation scenario ( like https://angular.io/guide/hierarchical-dependency-injection#scenario-service-isolation )@Injectable()export class...

View Article

Angular 8 creating a link between 2 separate variables

I have an array which creates view based on the objects in it. The values inside the objects can be changed using ngModel. What happening is when I get the response of the array I set that same...

View Article


Image may be NSFW.
Clik here to view.

Angular throw error no matching service worker detected

I'm always get the error like below when using service worker with angular v8 which did not happend in v7Below is my configpackage.json"@angular/animations": "~8.2.14","@angular/common":...

View Article


Cannot get ngx-infinite-scroll to listen to window scroll

I am trying to implement ngx-infinite-scrollI am unable to get it to do what I want which is listen to my browser or window scroll so I may scroll content and load when needed.What's happening is can...

View Article

How cancel angular http request made in RXJS Effects

I want to cancel the http request made in RXJS effects in angular 8.@Effect() getReport$ = this.action$.pipe(ofType(ActionTypes.GET_WIDGET), map(toPayload),mergeMap(payload => { return...

View Article

@ngrx/entity `Cannot read property 'ids' of undefined` when using together...

I have looked at the 2 other posts regarding this, the one with the wrapping around the larger state does not apply whilst the other one with registering multiple forFeature -- I have done some testing...

View Article

Angular 8, How pass configurations to a lazy loaded Module

I need to pass providers to a Lazy loaded module.Context:I have a module that access an API and returns some configs to be rendered in the components.This is the Module:@NgModule({ declarations:...

View Article


Updating angular proxy config URL without restarting the application

I have the following configuration for API proxy in my Angular application.const proxyConfig = [ { context: ['**', '!'], target: 'https://example.com', secure: false, changeOrigin: true }];I was...

View Article

How to add new input fields for lists and pass those data to dialog in...

I need to add new input fields for some ordered lists and pass those list data to dialog(from parent to child component) in angular 14Parent component: Ordered Lists <input...

View Article


Angular code smell "Either remove this import or add it as a dependency."...

I'm new to UI development so forgive me if this isn't angular. I'm using Angular 8 and typescript here. Anyways I created a pop-up modal that I wan't to use throughout my website. It looks great but...

View Article

Angular agDatePickerComponent not working on empty or blank ag grid cell

I am using an agrid column in angular version 8. I have a column which is a date field. Which can have blank date as well. Now when I have value inside the cell for example 2023-04-01 and I click on...

View Article


Image may be NSFW.
Clik here to view.

Changing color and status dynamically in angular

I am working on a angular application. I have a JSON response coming from rabbitmq. This response has a parameter of level and it's values can be low, medium or high. If at run time value of level...

View Article

Angular 8 - Lazy loading modules : Error TS1323: Dynamic import is only...

When I updated Angular from 7 to Angular 8, getting error for lazy loading modulesI have tried the options, which are there in the angular upgradation guideMade the below changes:Before loadChildren:...

View Article

Angular 8 + Firebase: Cannot initialize project due to...

I am having trouble in connecting Angular + Firebase due to this one line of code.AngularFireModule.initializeApp(environment.firebase) The error is: Property 'firebase' does not exist on type '{...

View Article
Browsing all 57 articles
Browse latest View live




Latest Images