All Questions
285 questions
-1
votes
1
answer
205
views
Adding SL number to a angular table
I have the following table where in the table is generated using an array:
<tbody *ngFor="let ques of questArray;let i =index">
<tr *ngif="catId == ques.categoryID">
&...
-1
votes
1
answer
1k
views
Negative validation not working in Angular
I have the following HTML Angular tags, which need to trigger a validation error when there is a negative value entered in any of the groups of textboxes (dynamic array).
<tr *ngFor="let order ...
0
votes
1
answer
817
views
Angular replace component selector with html [duplicate]
Say you have the following component:
@Component({
selector: 'passport-cell',
templateUrl: './passport-cell.component.html',
styleUrls: ['./passport-cell.component.scss']
})
export class ...
3
votes
1
answer
372
views
Hierarchy dropdown with nth child in angular 6. I want select parent checkbox need hide all it children checkbox
Hierarchy dropdown with nth child in angular 6. I want select parent checkbox need hide all it children checkbox. I have tried up to 3rd level. but I need get up to nth level Please help me. My code.
...
2
votes
1
answer
603
views
Add red dot in a tab in navbar
I need to add a red dot with a number in a messaging tab when there are new messages.
This is my HTML
<ul class="nav pw-nav pw-nav--horizontal">
<li class="nav-item"&...
0
votes
2
answers
1k
views
How can i place edit icon and data in one <td> in mat table
I am new in Angular. this is my main table(its wireframe)
when i click on pencil icon it should look like this:
but i am not getting the output like this. i have tried this
stackblitz url: https://...
0
votes
1
answer
288
views
i am using javascript drag and drop events in angular 6 . but facing issue in ev.dataTransfer.effectAllowed = "copy";
i want to drag and drop element from left div to right divs (1 and 2) . but i dont want to move element from left div it should copy from left div and paste on right div because i want to drag and ...
0
votes
1
answer
721
views
How to create multiple rectangle and fill the rectangle based on color chosen by user in angular?
i am new to angular coding , for my project i need to create multiple rectangles and fill the rectangle based on value we choose , anyone has any idea for which module would provide such facilities
0
votes
1
answer
728
views
Dynamic element reference in angular template driven forms
I am trying to generate form dynamically . I am trying to set element reference to ngModel dynamically but it is not working .
#{{item.name}}="ngModel"
.Here is the code
<input type={{item....
0
votes
1
answer
1k
views
How to subtract time values in Angular 6 template
I have two time values. One getting from the API, other time is entered by the user.
I want to subtract these two values and display the time difference.
How do I subtract in Angular 6.
Code -
<...
0
votes
1
answer
3k
views
how to use nb-select & nb-option
'nb-option' is not a known element:
1. If 'nb-option' is an Angular component, then verify that it is part of this module.
2. If 'nb-option' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the ...
0
votes
2
answers
1k
views
Multi level radio button
I want to create a two-level radio button only for one particular option.
Here I have written a logic that will display an extra two radio buttons under the 'Spring' option. But when it got selected ...
0
votes
1
answer
1k
views
html tag attributes not working when rendering html through string in angular 6
I am storing the HTML in a string and using it in the HTML file, I have used the HTML sanitize pipe.
below is my string
privacyNotice = "<div style=\"color: #ff0000;font-style: italic;\">...
0
votes
2
answers
606
views
how to disable the elements of particular row in the formGroup in angular
Hi I need to disable particular row which is selected via checkbox , I tried below code but it isn't working so please help me with it thank you.
html file code:
<form [formGroup]="myFormGroup"&...
0
votes
1
answer
989
views
How to allow negative and positive values from 0 to 100 for an input box in Angular 6?
HTML code
<input type="number" min="0" max="100" required placeholder="Charge" [(ngModel)]="rateInput" name="rateInput" [formControl]="rateControl">
TypeScript validation
this.rateControl = ...