Skip to main content

All Questions

Tagged with
-1 votes
1 answer
2k views

Error: Emit attempted before Angular Webpack plugin initialization(Error: Emit attempted before Angular Webpack plugin initialization)

Here what im doing is I have created new project in Angular 15 and moving the code from the Angular version 5. I have fixed all the errors but stuck with this one error.And also here is the my current ...
KKR's user avatar
  • 1
0 votes
0 answers
80 views

TypeError: Cannot read properties of undefined (reading 'mangleWasmImports')

I'm in the process of upgrading my old node 8x project to node 18.18.0. When building a webpack angularjs app I get this error and unsure how to handle this issue. Is this a bug in webpack/webpack-cli ...
jammerman's user avatar
0 votes
1 answer
82 views

Angular 4 Semantic UI Tabs only work after i click on them

I have some semantic UI tabs set up in my app.component.html like this: <div class = "ui container"> <h1>Header/h1> <hr> <div style = "background-color: ...
Stefan Drljevic's user avatar
0 votes
1 answer
76 views

Property 'artist' does not exist on type 'ArtistItemsComponent'

So I'm new to Angular, and following an Angular5 course on LinkedIn. I'm trying to create a subcomponent named artist-items, and have created the HTML and TS files for it. Okay, apologies for posting ...
NK Rao's user avatar
  • 53
0 votes
1 answer
191 views

How to save data without ngModel in template driven approach

I am stuck in a situation where I have to save data to the database from Angular UI. I am showing a tabular format data where the table data (table header and table value) changes based on some ...
Running Rabbit's user avatar
0 votes
1 answer
655 views

Using the filter or find method to retrieve an object inside a json [closed]

How can I obtain one of these objects by using the filter or find method and looking for a match inside of the fiberAgrupations Array I tried doing this: const landlineRate = this.monolineJsonRates[0]....
Victor York's user avatar
  • 1,671
0 votes
2 answers
110 views

How to check for undefined before assigning to variable

Im using a find method to extract an ID (string) but this is returning an undefined as it doesnt exist. const additionalLinePhoneNumber = products.find(product => product.name === 'segundaLinea')....
Victor York's user avatar
  • 1,671
2 votes
1 answer
169 views

Filtering Array of Objects on the base of two fields in type script

I am working in angular 5 I have a problem I have an API response like: modules: Array(6) 0:{name:module1,value:'a',key:10} 1:{name:module2,value:'b',key:20} 2:{name:module3,value:'c',key:20} 3:{...
adnan ahmed's user avatar
0 votes
0 answers
250 views

SonarQube displaying "Simplify this expression"

SonarQube is returning quite a few code smells where I should simplify a single line of code: this.moduleContestViewModel.hasUserParticipated = (accpetedInteraction.length > 0) ? true : false; and ...
Victor York's user avatar
  • 1,671
0 votes
1 answer
2k views

SonarQube displaying "Remove this unnecessary cast"

Why is SonarQube giving this error and how could I fix it? Remove this unnecessary cast. Promise.all([ this.customerViewCmr4tProvider.getData(activeNumber), this.customerBillManagementProvider....
Victor York's user avatar
  • 1,671
2 votes
2 answers
2k views

How do I trim space in primeNg Dropdown (p-dropdown) filter in angular 5?

I have used primeNg dropdown (p-dropdown) in my angular 5 project but when I try to filter dropdown data and I give the space after that dropdown shows the No Results Found so How can I solve that? e....
Purvang Gor's user avatar
0 votes
2 answers
475 views

Angular 5 conact string only if field exists in html

I am trying to concat two fields but the problem is in some cases the second field doesn't exist. In the below code group.GroupDescription field is not present in some entires. Is there any way to ...
pratik jaiswal's user avatar
0 votes
2 answers
2k views

Angular - how to map observable inside array

I have an array of servers object where inside that array I have another observable array of objects, its key is [securityGroups]. ngOnInit(): void { forkJoin( this.serverService.getServer(),...
Dave's user avatar
  • 91
0 votes
0 answers
428 views

Angular 5 lazy loading not working. Shared module not working

We are trying to implement lazy load in our project. But I am having a strange error. Basically, I have created a module for a component and used loadchildren in app.module. But there is another ...
pratik jaiswal's user avatar
2 votes
1 answer
541 views

set datepicker value automatically based on previous datepicker in angular(setvalue)

I have two datepickers picker1 and picker2. What I am trying to to is that when I select a date in picker1 the picker2 should automatically get selected and the date in the picker2 should be 60 days ...
expt labssy's user avatar

15 30 50 per page
1
2 3 4 5
86