Skip to main content
0 votes
1 answer
93 views

Template Referencing not happening when origin has a *ngIf

<mat-icon #suggestionIcon="cdkOverlayOrigin" class="suggestionIcon" *ngIf="part.highlight" (click)="openOverlay()" cdkOverlayOrigin > ...
Amal Joby's user avatar
0 votes
2 answers
238 views

ng-if or ng-repeat in angularjs remove web-components from DOM

I have 14.2 angular and I need to reuse components from angular in the legacy project in angular js (1.8.3) using web components. I have two examples: https://stackblitz.com/edit/angularjs-with-...
Mykola Novytskyi's user avatar
0 votes
1 answer
473 views

How to show and hide the calendar based on condition in angular

I have an angular application in that I need to show the caledar based selected dropdown list. .component.ts OptionList: LookupActionCode[]=[]; public setList(actionType: any):void{ this....
developer1's user avatar
0 votes
0 answers
79 views

AngularJs form validation not working with ng-show

I am struggling with ng-show and $invalid logic, my requirement is very simple I need to make a form that will show input fields based on conditions. I need to add one datetime picker of moment.js. ...
Rikk Mor's user avatar
0 votes
1 answer
106k views

ng-keyup firing but not reading properly when used with an ng-if inside a directive template

I have a directive and it works fine in a way such that when I type something the search() scope function inside my directive fires and sets $scope.query with the input text. here is the directive ...
cmgchess's user avatar
  • 10.3k
1 vote
1 answer
60k views

directive with ng-if not rendering in Angular.js

I'm trying to render a directive whenever I get the search results back. My plan was to keep a scope variable algoliaSearch initially false and whenever I get back search results I change it to true. ...
cmgchess's user avatar
  • 10.3k
-2 votes
1 answer
42 views

How can we write this in <div ng-if= " ". the like expression and everything else

(( (table1.field1 like 'HR%') OR (table1.field1 like 'ABC%' OR table1.field1 like 'XYZ%') ))
Manisha Tratta's user avatar
0 votes
0 answers
105 views

If one element active then not show another one Angular JS

I am working on AngularJS project. It's a store that has a search bar and profile, cart icon near it. When I click the search bar, it extends to the right and overlays the right icons. And when it ...
NBash's user avatar
  • 515
1 vote
1 answer
652 views

AngularJS ng-if variable works only once

I am maintaining a code written some time ago, I have no experience in AngularJS. I have to turn on a spinner while an HTTP request is fired and to turn off it when the HTTP response is received. The ...
shogitai's user avatar
  • 1,981
1 vote
3 answers
4k views

Why do ng-if don't work inside a mat-dialog

I have created a mat-dialog component to fire for http response. When I include a ngIf statement inside the html for the mat-dialog,it is not handled. On the console it shows a warning as follows. Can'...
sadisha nadiej's user avatar
1 vote
1 answer
40 views

Ng-if: using plain expression instead of function call, does it make a difference?

I couldn't find an answer so I'm bringing it up here. Does it make a difference in resources or performance if I use $scope.isAllowed = true; <div ng-if="isAllowed"></div> ...
Nebulosar's user avatar
  • 1,887
0 votes
1 answer
320 views

AngularJs UI Bootstrap dropdown position is miscalculated while adding ngif for dropdown-menu

AngularJs UI Bootstrap is miscalculating position of dropdown while adding ng-if condition for ui element holding 'dropdown-menu' class. AngularJs UI Bootstrap version - 0.3.13 AngularJs version - 1....
Jeff Johny's user avatar
0 votes
3 answers
845 views

Angularjs: Why does it execute function in ng-if when I click on table row?

I have code on https://jsfiddle.net/8t45enfg/2/ The source code is quite simple, suppose the array list have only one element HTML code: <div ng-controller="myController"> <table> ...
Ngoc Phuong Le's user avatar
0 votes
1 answer
225 views

Using ng-if with directive take to much time [Slowly]

I have a directive tree list view with checks box, (aleardy developed by another developer), i want to display it to the user when he clicks on button, so i used ng-if/ng-show/ng-hide/ng-class with ...
Brahim Djarallah's user avatar
0 votes
1 answer
342 views

How to show a <span> element for each rows clicked in angularjs

I just want to make the marked and unmarked icon of each below appear based on the response from the server. I've read series of relevant questions but all seems to be ng-class related, I tried to ...
Ola's user avatar
  • 731

15 30 50 per page
1
2 3 4 5
7