new

Stack Overflow for Teams

A private, secure home for your team's questions and answers.

Learn more
0
votes
0answers
21 views

Angular js ng-Options adding extra option as default with dynamic model name inside ng-repeat [duplicate]

I have been troubling to fix this, i just wanted my dropdown to use my supplied value as selected. My HTML: <select ng-init="status[lot.mid]='{{lot.status}}'" ng-model="status[lot.mid]" ng-...
1
vote
1answer
33 views

Bootstrap multiselect is not working when i bind the data from response in Angularjs

Bootstrap multiselect is not working when i bind the data from response in Angularjs angular.module('ngvalueSelect', []) .controller('ExampleController', ['$scope','$http', function($scope,$...
1
vote
1answer
33 views

How to use angularJs for dynamically created HTML(Which is not loaded to DOM)

Hello I am very new to AngularJs. I am retrieving the HTML data from C# by calling ajax function. Here i am trying to use the AngularJs functionality for the dynamically generated HTML. But i am not ...
0
votes
1answer
56 views

AngularJS 1.6 pagination not displaying

I'm new with Angular, and I'm building off of a previous tutorial created by Jason Watmore (http://jasonwatmore.com/post/2016/01/31/angularjs-pagination-example-with-logic-like-google) on pagination. ...
1
vote
0answers
93 views

I'm not able to send the complete form data using ng-submit. Appended div data is being sent as undefined

I'm not able to send the complete form data using ng-submit.I'm able to send the data containing even name, event status, trigger event and relay state. The data of the appended div is being sent as ...
1
vote
1answer
64 views

Angular Radio default select and ng-if button not working

i have ng-repeat inside images and icon two radio buttons but when the page loads the default checked based on the ng-if should have to show currently the ng-if not working. HTML <div class="...
-1
votes
1answer
46 views

ng-click is not giving any response while hitting web api

The html page is here with the whole code. <body ng-app="mymodule"> <label>Search:</label><input type="text" placeholder="Search Here" ng-model="search" /> <table ...
1
vote
1answer
63 views

How to get selected values from custom drop-down using angularJS

actually I have been implemented one custom drop-down using <ul> & <li> elements in my application. And right now I am able to select dropdown values by using mouse click but as part ...
0
votes
1answer
31 views

How can I access a variable data which is in a different js file using AngularJS

I want to use a variable data in another js file. How do I do that in anularjs. In one.js file i have a variable tagText="SAP" and I want to use its value in another js file(two.js). How do I do that ...
1
vote
1answer
36 views

ng-bind-html does not update the record angularjs 1.6

Unable to reload data in html (view) Its loading fine only in first time (page load) , on button click it doesn't reflect changes though controller has the correct record . View - <div class="...
1
vote
2answers
49 views

AngularJS 1.6 + ES6 - Returning jquery ui-grid callback data to controller [duplicate]

I'm defining a jquery ui-grid component in my controller, the minified example of which is shown below: class myController { constructor($scope) { this.$scope = $scope; ...
-1
votes
1answer
33 views

Broadcast to directive from modal

I am using angularjs directive which contains some methods with ajax call in broadcasting event. I am passing data as parameter to directive from different controllers ,some data I am passing from ...
0
votes
0answers
36 views

jquery $ selector to apply only to template scope (AngularJS)

I'm generating a template multiple times in the same page, however a function of this template's controller will work on the whole page. How can make sure it only works within the respective template ...
0
votes
0answers
44 views

Updating ng-show value after Promise returns

I have a problem where I'm trying to ng-show a view using ng-view when the user is logged in. By default the value vm.isLoggedIn is false when the controller initializes and vm.isLoggedIn gets set to ...
0
votes
1answer
28 views

AngularJS/JS-how to convert hard coded value in factory by server returned value

I'm trying to implement solution given on "http://plnkr.co/edit/zsh2Bt7jBl1Z2mKKqlwa?p=preview", it is working as expected (with hard coded User details) but now when I am trying to replace the hard ...
0
votes
0answers
63 views

Parent ng-click action is getting triggered on child ng-click (from child, need to access $parentNodesScope for angular-tree-ui)

I’m trying to post Form and including angular-ui as one of element in form (http://plnkr.co/edit/6S881qNp3v7UI4Bo9pko?p=preview), whenever I am clicking “Insert Below”, form is getting posted (in ...
0
votes
1answer
328 views

Compare two text and find the difference

I am working on AngularJS application i want to compare text and highlight the difference in another div. Below is my code $scope.left="one two three"; $scope.right="one two four"; <div>{{diff}...
0
votes
1answer
55 views

Compile directive from dynamically inserted tag

I want to create a dashboard comprising of several smaller "apps". I have the following markup (simplified): <div id="rowcontainer"> <div ng-repeat="appRow in dashboard.appRows"> &...
0
votes
1answer
94 views

How to update angularjs $scope from $.get jquery?

I am trying to use the following code and use $scope: var scopes = "https://www.googleapis.com/auth/contacts.readonly"; setTimeout(authorize(), 20); function authorize() { gapi.auth.authorize({...
0
votes
1answer
37 views

AngularJS scope is not available when using Bootstrap Validation Plugin

I'm trying to use this plugin with angularjs to validate forms http://1000hz.github.io/bootstrap-validator/ plugimg I've tried a lot but I don't know why the scope variable is not accessible inside ...
0
votes
0answers
358 views

sweet alert and value from radio

I have a problem with getting value from a radio from a sweet alert. I want to give value from a radio to my HTML page. addTags is a button, radioV is from <p id="radioV"></p> in html. ...
0
votes
0answers
79 views

Angular Js: Image Slider not working after scope update

I am trying to show image slide in angular js. When the page loads the images are showing properly. I have a search button (which will be a default string at the starting of the page) when try to ...
0
votes
1answer
60 views

angularjs input field not updating after calling $(“.myItem”).dateInput()

My angular input fields are working fine, until I have a datetime editor. <input class="myItem" defaultdate="2017-05-10T06:50" displayformat="dd-mm-jjjj uu:mm" pageupdownweek="true" ...
0
votes
0answers
432 views

angular.element.scope() sometimes does not return scope functions

I'm working on a site that utilizes chart.js and angularjs to build a visualization dashboard for fiscal information. The data for the visualizations are queried from a back end and stored on the page'...
-1
votes
1answer
76 views

How to filter data by button value in AngularJS button click?

I am trying to search data with fix button value like when I click on veg button I want to only veg category data. right now my code is like. actually I am new learner for Angular js code. First ...
0
votes
1answer
1k views

Create dynamic HTML form using json data? [closed]

Upon clicking the "get Form" button a request should be made to the form api and render the form using the information received in the response.Once the form is rendered, the user must be able to "...
2
votes
2answers
232 views

Angular JS passes App ID and Key with every request

I have a basic angular APP that makes a GET request call to a API URL. The data returned is in JSON format. The API documentation states the following: You must provide your App ID and key with ...
0
votes
0answers
72 views

Angular two forms, two ng-click, same function, only the first one runs

I have two forms on a page. The first adds an item to the database, and the second is prepopulated with the data and allows the user to modify the item. The first form allows the user to create and ...
0
votes
1answer
41 views

inserting a directive every time a button is clicked

I am working from a tutorial here: https://fourtonfish.com/blog/2014-01-dynamically-add-directives-in-angularjs-no-jquery/ However, I want to create a directive and inject this into my HTML every ...
0
votes
1answer
37 views

How do I separate the json objects in a get http request in a $scope?

[{ "entityList": [ { "scenarioNo": "SC1", "accountingMonExtracted": null, "acronym": null, "address1": "542 W 27th Street 4th Floor", "address2": null, "...
0
votes
1answer
162 views

Angularjs: open on focus and month picker feature to calendar?

How can I add open on focus feature(similar as Microsoft windows 7 calendar) to my calendar as given in demo where we using angular materiel version1.0.1, please help me with solution. Thanks In ...
0
votes
1answer
392 views

How to execute Angular ng-click directive inside custom component on enter key press

I have a custom icon component using isolate scope where a user can define what he or she wants to happen on ng-click: <ers-icon name="history" ng-click="ctrl.clickAlert('history')"></ers-...
0
votes
0answers
47 views

AngularJS - Not showing new values

I have one test01.html page. When I click on Next button of test01.html page they call one Java Service and that service return one key, name is changeList and I just display this key value into my ...
0
votes
1answer
49 views

Cannot add controller in angularjs which is defined in separate file

I am newbie to angular. Currently all of my controllers are defined in following controllers.js file on following patterns function A($scope){.....} function B($scope){.....} function MainCtrl($http) ...
0
votes
1answer
94 views

angularjs fullcalendar eventclick scope

i have a controller named CalendarDemoCtrl where i have the config for fullcalendar as shown below. $scope.uiConfig = { calendar: { height: 600, editable: false, ...
0
votes
1answer
53 views

Array Object in a scope showing empty while reading in a child html page- angular JS

I have an array object in my angualr js file which while trying to console showing the results in js file. When I am trying to use the same object in a html file it is shown as empty. Here is my code ...
0
votes
2answers
145 views

Scope not updating UI inside the success function of http.get

I want to integrate the same high chart as in this link with Restful API using the $http.get, it doesn't work because of the $scope.pieData is in the success function: app.directive('hcPieChart', ...
0
votes
1answer
45 views

User input not binding from $scope.$watch

Just getting started with Angular and I've spent the last 2 days trying to figure out how to bind data from a new search through a service. I had the search working before with the following code ...
1
vote
1answer
273 views

angularjs submit button not working

I'm validating & submitting a simple form using angularjs, the form seems to do some initial validation but the submit button does not log or executes the angular function defined to it. What am I ...
1
vote
1answer
663 views

How to restrict copy paste of special charatetrs and alphabets inside a Text Box using Angularjs

I have a text box. I want to restrict user to only copy paste numeric.I dont want copy paste of alphabets and special characters. I have tried below code with out success. <!DOCTYPE html> ...
0
votes
1answer
63 views

AngularJS data-binding doesn't work when input updated by third-party libraries

The form is using jquery.placepicker to get addresses from a google map and ng-bs3-datepicker to set the date. I found that the data isn't updated in the controller's scope. How can I trigger the ...
0
votes
1answer
46 views

Is it better to use 2 controllers for the same page's two parts

I have one page which has two parts, both parts are somewhere dependent on each other. So my question is Do I need to create 2 different controllers for that.(if yes then how i will share the $scope ...
0
votes
2answers
49 views

Event binded to dynamically generated HTML get called automatically

I am trying to bind event to dynamically generated html in AngularJs controller, but I can't. I found following code snippet var div = angular.element("del-" + input.name); div.bind('onclick', $scope....
0
votes
2answers
61 views

ngRepeat based on the selection

I want to change the number of elements to the number given by a select box. My code: index.php <select class="form-control-static" ng-model="fieldSelect" ng-change="showSelectValue(fieldSelect)"&...
0
votes
0answers
39 views

Undefined two-way binding object to save in angular

I posted my code below. In a modal I have a editDependent as model in a modal div which is in a page employee.html which is routed in a inner div ui-view. How to perform the two-way binding on the ...
0
votes
0answers
57 views

Angular js unable to access updated scope in directive?

I created two directives and applied on element. when I alert ng-model in selectControlDir it get value in alert and from cbqControlDir I get undefined in alert. I made some ajax call on load and on ...
0
votes
0answers
32 views

Update scope in directive and make available for next directive in angular js

plunker for code There are two directive link with a element. HTML <div class="row"> <div class="form-group"> <label class="col-sm-5 ...
0
votes
2answers
543 views

Get the ID of clicked button only in Angular Js

In the snippet bellow, if you click one of the buttons, then all three buttons will re-act and rotate with the clicked one. How can I rotate only the clicked one? I tried to pass unique id of each ...
1
vote
3answers
56 views

Delete database data in angularjs

When I put this link on the browser it will worked. But, When clicked on the button it will not working. What is the wrong in this code. http://localhost/youtubewebservice/shopCartProductDelete.php?...
0
votes
2answers
289 views

Load jquery module after an angularjs view has loaded?

How do you load a javascript file after an angularjs view has loaded? I want to apply a third party script on a view, but it only works when I reload the full page, not when the view is called. So I'...