8,923 questions
1
vote
1
answer
53
views
Why the ng-pristine class in AngularJS form always returns true
Why the ng-pristine class in AngularJS form always returns true.
enter a value in the input field and click the button, it does not return false, it returns true.
test.html
<div ng-app="...
1
vote
0
answers
25
views
Update the isolated scope of all instanced directives
My current situation right now is rather tricky and I've been bashing my head for two days straight trying to fix this problem.
I have accordion sections in which there is a space reserved to add/...
0
votes
1
answer
61
views
different image url each profile (ng-repeat)(ng-src)
I want a different image url each person profile everytime they’re profile details appeared.
But what happen is it’s only targeted the last url on $scope.imgSrc so they have all same pics which is I ...
1
vote
0
answers
81
views
ng-isolate-scope in each child directive along with ng-repeat in AngularJS
The HTML template contains the nested directives. The child directive will create the element or fields based on the data injected to it. So field can be type of dropdown, input field etc. I suspect ...
2
votes
0
answers
282
views
Rendering AngularJS code inside React component
Is it possible to render AngularJS component inside React component which is rendered from an AngularJS component.
I have a specific scenario where:
<angularjs-component-1>
<react-...
0
votes
1
answer
43
views
Filter and show results from other pages
I have a HTML page with a textbox and table to display data
<input id="search-term" type="search" placeholder="Search..." ng-model="vm.term.search" ...
0
votes
1
answer
101
views
AngularJS ng-class updating content
I've got some code in AngularJS here working half percent (I will explain) :
<button ng-class="{'svgMinus-dark': isDarkTheme, 'svgMinus': !isDarkTheme}"></button>
I also tried ...
0
votes
1
answer
46
views
How to use controller with custom directive in AngularJS?
Let's say I am using a custom directive named my-form-data:
<my-form-data info='infoObj1' template="ssc.html"/>
<my-form-data info='infoObj2' template="college.html"/>
...
0
votes
1
answer
305
views
Checkbox to button ngmodel - which way to change my value
I'd like to edit my checkbox so I get a or an input with type=button instead.
I have for now, properly working :
<label>Afficher</label>
<input type="checkbox" ng-model="...
0
votes
1
answer
106k
views
Angular.js unable to change scope variable value just after a different function call
I'm trying to implement a Refresh button for fetching latest search results from an external index. When I click on the Refresh button the icon is supposed to spin. My plan was to have a scope ...
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 ...
0
votes
0
answers
263
views
angular.min.js:117 Error: Could not resolve 'create' from state ''
Hi I have created a angularjs+webix project wherein I will be adding CRUD operations.
I have a app.js file where I put the routing:
var app = angular.module('app', [ "webix", "ui....
0
votes
1
answer
98
views
AngularJS performing math
I have this scope function where it has a cost and a formatted value in data. That cost and formatted value are coming from an API. The formatted value can be in a different currency not limited to ...
0
votes
1
answer
684
views
how to disable radio button dynamically in angularjs using ng-repeat
I have developing some code in Angular JS and i need to disable radio button based on previous selection or change in text box
in JS controller:
PPCO.cusGender = [ {
id : '1',
key : 'Male',
value : '...
-1
votes
1
answer
25
views
angularjs prints all method
I need to create a method to compone a url, So in my class I do this:
createLink take un id and return the url:
console.log("before the method");
console.log($scope.createLink )
$scope....
0
votes
1
answer
98
views
a doesn't show href
I need to click on icon and With some api I need to download a file. So I do in my html:
<td>
<a title="download" ng-show="file.name"
...
0
votes
2
answers
207
views
Angular JS if checked return value
I'm trying to return a value to my $scope depending on if the checkbox is checked in angular JS but cannot seem to do so. Is there a way to get it to work?
HTML:
<div class=" specialClause ...
0
votes
1
answer
230
views
How to use a string as a variable in AngularJs
How to use a string as a variable within the scope. Heres my code:
HTML (one of many divs like this where type1 can be type2, type3, and so on):
<div style="color:red;font-size:11px;">{...
0
votes
1
answer
108
views
value store in Angularjs Objects and outputting in View
I have a form. It contains Name , quantity & price . I want to get input from form and store in Angularjs Objects. Then i have to output to View the whole array of angular objects. I tried with ...
1
vote
1
answer
36
views
How to pass a parent components function into a child and then call it from inside the child AngularJS
Function on parent
markAchievement() {
console.log("Achievement marked")
}
Binding on the parent's HTML
<mark-goal-button clickEvent="$ctrl.markAchievement()"></mark-...
1
vote
1
answer
35
views
How to use a Dynamic Variable to access Scope field - AngularJS
I am trying to have a variable string, and access the matching $scope.field but it is undefined and not returning what I am expecting. What am I doing wrong, or is this not possible?
$scope....
0
votes
1
answer
103
views
How to Access Internal script $scope value in controller function in angular JS
Here is HTML with internal script
<html>
<body ng-controller="test">
<span> {{data.name}} </span>
<input ng-model="data.name">
...
0
votes
1
answer
214
views
AngularJS populate select using scope variable
Trying to get a simple binding going with a html select and a scope variable but the select is not populating with the right value.
<select ng-model="noOfReps" name="reps" id=&...
0
votes
2
answers
258
views
In AngularJS, is there a way to tell what triggered a digest cycle?
I am working on a legacy AngularJS project. The code is too complicated/large to show here. But I have noticed that functions that are called when the digest changes are getting called hundreds of ...
-1
votes
1
answer
336
views
How to disable Pinning in UI Grid in AngularJS
How to disable the pinning in UI Grid for AngularJs??
Even after setting enablePinning:false or enableGridMenu: false It is not work
app.js file:
var app = angular.module('app', ['ngTouch', 'ui.grid',...