Skip to main content

All Questions

Filter by
Sorted by
Tagged with
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
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
105k 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
59k 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
651 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
844 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
0 votes
1 answer
165 views

ng-if does not work when placed outside of controller and $compile-ed with scope, but ng-show does

I have a plain angular application which adds variables to the scope and simply display them. Which is simple and working. But there is a part of the page that does not run in angular (practically it ...
Eric Wong's user avatar
  • 1,483
0 votes
0 answers
742 views

Add font-awesome icon to one option in select created by an ng-repeat

Is it possible to add an icon to an option in a dropdown based on if it matches a certain setting from the data returned in an ng-repeat? I have the following select and the options within that ...
Blobula's user avatar
  • 181

15 30 50 per page
1
2 3 4 5 6