Tagged Questions
0
votes
1answer
14 views
Pass Data Between Angular UI Modals
I am looking to pass data between modals using Angular UI. Here is the modalController that defines the controller and view partial for each modal.
app.controller("modalController", function($scope, ...
0
votes
0answers
15 views
JQuery file not loading on page with ng-repeat
I am building a real estate listings page for a client of mine with ng-repeat from a json data file that holds all his listings data. On each listing I created a 3 field form so I can tap into a ...
0
votes
1answer
22 views
angular getting attribute value and cannot find a proper way
I have this in my dom
<div id=“my-lightbox-container" style="height: 0px;”>
<div id=“my-lightbox" role="dialog" style="width: 660px; height: 342px;”>
<button id=“my-close" ...
1
vote
0answers
15 views
Angular ui-sortable + angular-gridster
I'm trying to combine the functionality of ui-sortable and angular-gridster so that I can pull an item from a list and drop it into a rearrangeable grid. ui-sortable and angular-gridster have the same ...
1
vote
1answer
76 views
How do I $watch the Angular-ui's new ui-select (former ui-select2) search string changes?
I noticed that the Angular-UI have discontinued their UI-Select2 directive in favor of the new UI-Select (with multiple themes - select2, bootstrap, selectize).
It looks like this:
<ui-select ...
0
votes
1answer
16 views
Angular record the order of checkboxes as clicked
I am trying to add the functionality in my angular application to record the order of the checkboxes as they are clicked and hence show them in same order as they were clicked.
Here is the snippet:
...
0
votes
1answer
32 views
How do I $setValidity on an angular element in a form in $modal from within a controller?
I have an angular-ui $modal which users use to rapidly create a new element. When they do, I want to check that an element is unique. It calls $save(item) in the controller, which tries the save. If ...
0
votes
1answer
103 views
Angular Translate Use with Directive
Here's fiddle link .... I am trying to update the content of directive with $translate and using the controller. Is there any other generic way to do the same thing(link in directive?? ) .If i want ...
0
votes
2answers
27 views
Angular Translate with JSON file not working
Here's fiddle
Fiddle is attached to see if i have included all the files in my htmlfile.No error coming while running but in h2 tag i am seeing HEADLINE only instead of its value. my JSON file name is ...
1
vote
3answers
83 views
Not able to load $http.get - JSON data in ui tabset child tabs
I tried to load a dropdown with the response got from http post. But its failing to load on child tabs.
When i click next button from tab1. I make a post call and get a JSON back. Using the returned ...
2
votes
1answer
57 views
Tabset $rootScope scope not updating
I've a screen in below structure.
UserExperienceScreen
<tabset>
tab 1 - <controller> <form> - input fields - form submit - go to tab2
tab 2 - ...
0
votes
2answers
36 views
Angular directive variable not getting sent back to rootscope
I have a file upload angular directive that works when not placed inside of a tabset.
In the code below you will see that after a file is selected, and uploaded, it sets
scope.$parent.file = file;
...
0
votes
0answers
22 views
How to do pagination in tree-grid-directive?
I am using following ‘tree-grid-directive’.
https://github.com/khan4019/tree-grid-directive
Is there any way to do client/server side pagination in tree-grid-directive? Or Is this support ...
0
votes
0answers
28 views
Calling Flask route from Angular.js
I have a Flask application and an Angular.js UI.
I need some advice on how to call a Flask route from within an Angular directive passing some arguments for the Flask function to receive and process. ...
0
votes
0answers
43 views
how to fill combo box on page load in angular js?
I have a page which has two combobox in it. This is my view :
<div ng-init="loadComboBox()">
<select class="form-control" ng-model="SelectedItem1" ng-options="employee.FirstName for ...
0
votes
1answer
56 views
How to pass data into an angular.js UI bootstrap modal controller
Using Angular.js UI bootstrap modal, how can I pass data into a modal popup's controller? I am currently trying:
var modalInstance = $modal.open({
templateUrl: 'partials/confirmation-modal.html',
...
1
vote
2answers
94 views
Scope variable is not updated on ng-click in views with Angular UI Router
I have a problem with the following code: Plunkr.
When I click the button, the ng-click changes the variable var1 in scope. But apparently this variable is not updated in view, which I have created ...
0
votes
1answer
55 views
Angular service reset when changing page through Angular routes
I have multi page signUp form , I need to persist data until last step , so that user can jump to any step back and edit.
I am using service "User" as singleton object for all six steps.
...
0
votes
3answers
47 views
How to communicate between controllers while not using SharedService between them?
I was reading all the answers about communication between controllers and directive, but is seems to me occurred using shared service and inject it to each one of them. When I'm developing a very ...
0
votes
1answer
35 views
How to communicate between directive (tree component) and any other controller or directive in AngularJS app?
First of all, I have read so much info you all share about communication between controllers, that I'm now so confused about the BEST way to do it. I understand I should use service, but don't really ...
0
votes
1answer
23 views
Full Calender not working with angular code
I'm using ashraw's fullcalendar for an event scheduler in my project, and to display the events I have to write the code in jquery like this:
$(document).ready(function() {
...
0
votes
0answers
13 views
How do I clear the jqxinput textbox in angular method?
FYI : I have all my scripts and other necessary files loaded.
In my controller, I have:
mainApp.controller('secureLoginController', ['$scope', '$state', 'mainWebService', function($scope, $state, ...
0
votes
1answer
71 views
Dynamic Form and AngularJs
We have a dynamic Form being rendered based on database configurations. I am using code as mentioned in the below fiddle
But am not able to get the value of the checkbox element selected. Please ...
-1
votes
1answer
47 views
Query not working for me
I am using angularJs ng-resource.I have tried this
angular.module('app.services', ['ngResource'])
.factory('AngularIssues', function($resource){
return $resource('../test.json',{},{
...
0
votes
3answers
67 views
How do I allow for clicking on each item/post, then viewing it in a new screen?
Im trying to build a simple tutorial app list of grocery items, and then clicking on it will lead to a new page showing the grocery goods in details, such as price, quantity left etc.
Currently, ...
2
votes
3answers
29 views
Do you have to us ng-Controller in the view or can you just declare it in the $routeProvider?
I recently realized I had not used ng-Controller to declare the official scope of my controller in the HTML but had only mentioned it in $routeProvider and all APPEARS to be well.
Does any one know ...
0
votes
2answers
38 views
angular error in declaring multiple modules
I m new to Angular JS (apologies if my my terminology is incorrect or not enough explained).
I m trying to do a demo creating multiple modules which are just returning messages. My domo has just 2 ...
0
votes
1answer
42 views
Problems with ng-router and anchor tab
MyApp.config([ '$routeProvider', function($routeProvider) {
$routeProvider
.when('/getAttributes', {
templateUrl : 'view/attributes.jsp',
controller : 'attributeController'
...
0
votes
1answer
167 views
how to get data from json file using angularjs
I am getting data from json file to display in a table, but first time only i got data from getdata() next time i got following error:
Uncaught TypeError: Cannot read property 'length' of undefined ...
0
votes
1answer
48 views
Service not working - AngularJS
My task is to create a form and display the entered data to a div on clicking 'Submit'. The task involves creating two directives, one for creating the form and another for displaying the entered ...
0
votes
1answer
103 views
ng-route- Parameters with Special Characters
<nav>
<ul class="list">
<li ng-repeat="product in data | startFrom:currentPage*pageSize | limitTo:pageSize">
<span>{{product}}</span>
<a ...
0
votes
1answer
36 views
AngularJS model changes not shown in GUI after directive changes it
I am having an issue where I have a model:
<div ng-model="currentAudio">...</div>
I have a button (within and ng-repeat in the div of the model above):
<button ...
1
vote
1answer
60 views
Getting dynamic form values
Is there a way to check which like option is selected for which text box when submitted.
As shown below user may select like only for some text values. The html tags are dynamically generated based on ...
0
votes
3answers
46 views
Angular js: How to pic 2 data at a time with “ng-repeat”?
I want to achieve something like this with "angularJS".
var myData = [ "Data1", "Data2", "Data3", "Data4", ... ];
var cDom = "";
for(var i=1;i<totalLength;i++)
{
cDom = cDom + ...
0
votes
0answers
68 views
AngularJS with spring ModelAndView Ajax
I am sending a request from below jsp
<body ng-controller="MyController">
<div data-role="page" class="container">
<%@ include file="header.jsp" %>
<div ...
0
votes
0answers
64 views
Updating “treedata” model array in angular-tree-control will not update the UI. Why?
I am using angular-tree-control of wix:
http://wix.github.io/angular-tree-control/
The main problem is to understand how to update the UI tree with new children nodes, not by clicking on the folder ...
0
votes
1answer
47 views
Angular how to get route id at resolve block?
How can i get "pageid" inside resolve block?
For every url change i had to request the server, along with the "pageid"?
My code:
app.config(function($routeProvider){
$routeProvider
...
0
votes
1answer
19 views
shortenning angular code to one method
how can I shorten my code so I dont have to use two different methods to do a file upload for two different fields
this is what I have
<input type="file" name="file" ...
0
votes
1answer
19 views
angular send data to view
I have a link in as this
<li ng-repeat="x in data"> <a ng-href="/myurl#/view">{{x.id}}</a> </li>
I want to send x.id to myurl controller.
here is my router
...
0
votes
1answer
188 views
Angular UI Bootstrap - Collapsing tab content
Using the AngularJS UI Directives for bootstrap, is there any way to collapse the tab content using the tag?
I have several tabs/pills with content, which will start collapsed (hidden). When any of ...
0
votes
2answers
117 views
AngularJS if statement condition in an ng-repeat
I'm using ng-repeat in AngularJS
<ul>
<li ng-repeat="question in questions" class="question list-group-item media">
<span class="question__type">{{ question.question ...
-1
votes
1answer
224 views
trying to get angularstrap working but no luck
I am trying to get angularstrap working but have not had any luck yet. here is my angular code
<!DOCTYPE html>
<head>
<title>Learning AngularJS</title>
<script ...
0
votes
1answer
28 views
'sharing' controllers between modules
I will try to explain this as concisely as I can.
I have an app that can't be immediately converted to a single angular app. as a result we have a number of seperate modules that are effectively ...
1
vote
0answers
146 views
angularjs ng-click not working inside the pop over directive
I added some buttons in the pop over template.
when the page finishes the first loading, click on the element on the page, shows the popover, click on those buttons, every one works fine. But when ...
0
votes
2answers
78 views
angular ui modal can NOT refer to parent scope
i am using angular ui modal to create modal in my project.
Everything works fine until I need to refer to variable in parent scope. see plunker code
It seems like modal can't access parent scope. Is ...
0
votes
2answers
175 views
how to do filter using range slider in angularjs
In my application, I have used pricing slider. When I change minimum and maximum value of pricing slider, I need to filter based on the range. In angularjs, how to do this one. Can you please any one ...
2
votes
3answers
118 views
How to call controller function from directive?
how to call controller function from directive? or howto access directive ng-model from controller?
eg. I use angular ui bootstrap time component and when time change I need to notify calling function ...
0
votes
1answer
26 views
Need to $watch property from within an accordion (Angular-UI) but won't work
We're building a page with Angular, Angular-UI and UI-Bootstrap. The last one includes a directive for accordion, which simplifies a quite repetitive task of building up an accordion and an accordion ...
2
votes
1answer
765 views
Show and Hide Alert Using AngularUI Directives for Bootstrap
Am a newbie in the field of web design.
I came across bootstrap and later angularjs. I find them quite impressive.
I noticed that bootstrap comes with its own jquery libraries and angularjs uses its ...
0
votes
2answers
252 views
How to call collapseAll function on Angular UI tree?
I am using the angular-ui-tree directive to show a tree in my AngularJS application. However, I would now like to collapse the tree. The documenation states that there is a function called collapseAll ...