8,923 questions
1
vote
1
answer
745
views
TypeError: Cannot read property 'jsPlumb' of undefined
I need help please, I can't use dependency between tasks in angular-gantt. I found this error:
TypeError: Cannot read property 'jsPlumb' of undefined
at new DependenciesManager (http://localhost:...
2
votes
0
answers
97
views
Does Promise processing continue after scope/view has moved to another controller?
In controllerA I am writing a promise to get executed and have the app move to the next view. However, the app is not dependent on the promise response in order to move to the next view. When the ...
0
votes
1
answer
835
views
How to fetch data from dynamically created input textboxes on click of save button in Angularjs
I'm dynamically creating textboxes and save button for each Item and on click of save button I need to fetch value from the text box of that particular item.
for (let d = 0; d <= ItemsInfo.length ...
0
votes
2
answers
8k
views
Increment value of scope counter by 1 gives 10 $digest() iterations reached. Aborting error message
I am trying to work with angularjs and given is the JSFiddle for what I am trying to do
<div id="page-main-body">
<div id="container" ng-repeat="hero in heroModel">
<div id="page-...
1
vote
1
answer
2k
views
@scope value attached to button control not updating? MVC AngularJs
I have a default value for $scope.buttonId = 0
which I am using in button ng-click function like,
<button type="button" class="btn green" ng-click="vm.Update({{buttonId}})">
{{ 'Save' | ...
0
votes
0
answers
123
views
Using Protractor to change the boolean value of a variable in $scope
I'm using Protractor + Selenium to automate some integration tests for my angularjs web app. One of my DOM elements has an ng-if directive like so:
<button ng-if="browserSupported">
When ...
1
vote
0
answers
60
views
Ng-Click of ui-grid cellTemplate inside factory
I'm developing a website for my company, and I'm struggling while trying to trigger a function on cell's value click.
I'm using ui-grid and ControllerAs.
The function creating the table is inside my ...
3
votes
1
answer
251
views
Scope problem - Nested $mdDialog within class based controller
I am moving my AngularJS controllers over to a class based model in order to support a few newer ideas that have come up lately. This has brought up an issue using AngularJS Materials $mdDialog ...
0
votes
1
answer
518
views
How to call change event within controller scope?
Im facing issue while call the change event in my angular App. I have an code structure below:
<div class="content-area" ng-app="management">
<div class="project-table-wrapper" ng-...
0
votes
2
answers
1k
views
How to reset ng-model variables to Null in AngularJS?
In AngularJS, I have the following sample code:
<select style="margin-left:5px;width:60px" id="product" ng-model="output.product">
<select style="margin-left:5px;width:60px" id="status" ng-...
0
votes
1
answer
67
views
Function inside AngularJS controller is called twice
I have an anonymous function tied to the $scope in AngularJS. Problem is that the function is invoked 2 times and hence the "Hello!" is alerted twice.
I have no explicit watch defined on the function....
1
vote
3
answers
343
views
Concat $scope variables
I have 2 angular variables defined as below:
$scope.a = {
var1: value1,
var2: value2
};
$scope.b = {
var3: value3,
var4: value4
};
I am trying to concat var1 and var2 such that there is $...
0
votes
1
answer
128
views
How to test directives in modularized angularjs scope?
I am trying to test a directive which is defined in a sub-module of another submodule of the root module. I am unable to access the scope variables defined in the controller of the directive. The ...
0
votes
1
answer
1k
views
Ng-If only working when refreshing the page
I have a problem with ng-if, I am pretty new to angularjs. I want to show/hide a searchbar only on certain views, but it only works after refreshing the page. But it should work, when the view changed....
1
vote
2
answers
608
views
How to avoid digest cycle delay from two-way binding
Angularjs when two way data binding is triggered?
In an AngularJS application I have a parent directive and a child directive.
parentDirective
angular
.module('myApp')
.directive('customForm', ...
-1
votes
1
answer
115
views
$timeout function not working inside if statement
I am setting up a web form using angular whereby users will complete the form, get a response from the server, and then get redirected to another page.
angular.module('discountController', ['...
0
votes
1
answer
629
views
Unable to bind the scope variable to the html element in angular js
I am getting some value like "OPEN" or "CLOSE" from the function $scope.getPIRData, that I am storing in the $scope.pirstatus , I am trying to show that in the HTML Header tag<h1> {{pirstatus}}&...
1
vote
1
answer
656
views
Load template attribute in AngularJS directive for $http.get
I am new using angularjs and I am trying to create directives. My query is, how can I change the URL of the $http.get from the html. This is my code:
HTML directive:
<form-directive text="...
0
votes
1
answer
76
views
unable to push string to listbox in angularjs
When I'm trying to push a string(New) to a list box it was inserting as "undefined" to it.
$http({
method: 'GET',
url: 'http://xxx/api/Maintenance/GetAllFilteredItems',
...
0
votes
1
answer
52
views
AngularJs scope undefined while binding a textbox
Trying to bind data to input control from scope using below code.
var app = angular.module('ng_app', []);
app.controller("ITEM_Ctrl", function ($scope, $http) {
var PlantId = "abcFC"; $scope....
0
votes
2
answers
524
views
How to prevent DOM from loading until object is fully loaded into $scope?
I am loading a JSON that is almost 19,000 lines...minified to a single line its about 240k. I am loading it into my app via index.html file as a global var:
<script type="text/javascript" src="js/...
0
votes
0
answers
211
views
angularjs: event after interpolation/binding happened
Let's say I have an angularjs directive with a template like this:
<span>{{ myLabel }}</span>
Is there an event/service I could tap into to get the resulting interpolated html e.g:
<...
0
votes
0
answers
28
views
upgrading into Components
I have just started learning to develop an angularJS app,with my final objective being updating the angular version. As an initial step I wanted to remove $scope and refactor the following code into ...
0
votes
2
answers
38
views
AngularJS expression $scope is not being evaluated in the template html
I am able to console.log all the values correctly, but the expression img ng-src="{{$scope.bus}}" is not being evaluated. I am very new to angularJs, any help would be great. Below is the code
$scope....
2
votes
2
answers
763
views
Scope Not Updating When Using ng-click Within a Component
I have the issue that my scope is not updating when using ng-click within a component. The scope also does not update if I use $scope.$apply or $timeout so I am not sure what the issue is.
The idea ...