All Questions
Tagged with angular5 javascript
895
questions
1
vote
0
answers
45
views
I have to filter out nested object based on condition in angular 14
Below is my json object in which I have nested listofdeciosion object. If listofdecisoion length is greater than 1 and it has decision name as 'AEE' then I have to remove that object from ...
1
vote
1
answer
59
views
How to pass the filtered data which is returned from Custom Pipe to Child Component?
Parent Component
<app-search-bar (sender)="searchVideo($event)"></app-search-bar>
<ng-container *ngFor="let video of videos | search: query; let i=index;">
...
&...
0
votes
1
answer
149
views
Tried my best to stop duplicating data on continuous http request by clicking refresh button(for that particular component) Angular 5
The below is my .ts file for the Alarm Component and over HTML I am using a simple *ngFor over criticalObject.siteList to display the records
This is not the original code I have simplified this but ...
0
votes
1
answer
64
views
Angular5 use external component in Lazy loaded Module
I has LazyModule which I load lazy, and another one ModuleA. I need to use component Module-A-Component inside LazyModule. How can I access this external component? I use Module-A-Component around all ...
0
votes
2
answers
270
views
Angular5 - Scrolling to anchor
I am trying to do a scroll to an anchor when I redirect to a new page. I have tried different things but without success. Now it scrolls down but it's not showing the whole HTML element I need, it ...
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
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
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
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 ...
-1
votes
2
answers
635
views
Converting a complex timestamp to normal time in angular
I have a time stamp like
2021-03-12T14:55:35.454Z
I want to convert that into normal time like this (below) in the ts file
2:55pm
I am working in angular. Please help if you guys know. I have ...
0
votes
1
answer
10k
views
NgClass Error Angular (Can't bind to 'ngClass' since it isn't a known property of 'a')
I'm new to angular, and I'm trying to dynamically add a bootstrap class to my html, based on the active tab, however, I'm getting an error. Can you help me?
My error: Can't bind to 'ngClass' since it ...
1
vote
1
answer
3k
views
Convert the local file URL to blob in angular 5
How can I convert the local file URL to the blob before I pass it to the FileReader. Here, I'm trying to convert the local file in the assets to convert it to blob and pass it to the file reader. Is ...
0
votes
1
answer
822
views
How to load External JS and CSS files into Angular 5 (files loading with delay)
As title suggested I am facing some issues while trying to import the external js and css files into Angular 5 Application.
Here is code snippet that I did tried till now
Component.ts :
ngOnInit() {
...
0
votes
1
answer
1k
views
showing multiple images in popup which are already chosen angular
I have a table which has two columns namely file and preview. In the file column I have given the option to choose images. It can select multiple images and I have also written code in such a way that ...