Questions tagged [angular5]
Questions about Angular version 5, the web framework from Google. Use this tag for Angular questions which are specific to only version 5. Use tag Angular for any Angular questions which are not specific to an individual version.
angular5
6,540
questions
0
votes
1
answer
298
views
Angular 5 @Input property isn't a known property of component in lazy loaded module
I am trying to lazy load existing components in the angular application. I have imported a module named notification in the login module. Notification is a child component used via its selector name ...
0
votes
1
answer
233
views
Angular 2 dynamic form with multidimensional array
I'm tyinng to build a form using multiple reusable sections. I'm using a json object to keep the form data. Form is building without an error. I am using angular reactive forms. So I can't add ...
0
votes
3
answers
2k
views
patch mattimepicker in angular reactive form
I have an angular mattimepicker. I am using it in a reactive form. I am finding it difficult to patch the value to the edit form
<h1>Reactive Form</h1>
<form [formGroup]="form&...
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
...
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....
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....
0
votes
1
answer
2k
views
How do I change color of Mat-Checkbox when it is disabled Globally?
I have used mat-checkbox in my project and have given it a custom color. but that color is applying on all the disabled checkboxes in which users are unable to determine which checkbox is checked and ...
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 ...
0
votes
1
answer
386
views
Bootstrap 4 toolkit not working properly inside angular ngFor
I am having a strange issue with the bootstrap toolkit inside ngFor. On hover, it is taking some time to display the toolkit title and CSS is not getting applied. Please find the screenshot for the ...
-1
votes
1
answer
129
views
How to rewrite rxjs code without making calls within the subcribe method?
Hi I am having an angular 5 project and rxjs library used. i have code snippet below. I would like to rewrite in a better way.
export class AccountDetailsComponent implements OnInit {
ngOnInit() ...
0
votes
1
answer
118
views
Angular - Repeat value on select Option
I have a select, where the user's servers are rendered. Each server has several security groups. I need to show the user on select, only the server that does not have that security group. However, in ...
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(),...
0
votes
1
answer
329
views
Angular 9 - Get value Inside Observable Array of objects
I have an array of servers object where inside that array I have another observable array of objects, its key is [securityGroups].
I have another array of securitygroupsArray, where I GET my API to ...
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 ...
0
votes
1
answer
2k
views
How to bind values of enum to the ng-select tag?
I have created one enum and I want to use it in ng-select but without loop
export enum JobStatusEnum {
DEACTIVE = 0,
NEW = 1,
INPROGRESS = 2,
COMPLETED = 3,
CANCELED = 4,
...