0
votes
0answers
9 views

AngularJS: Two-way data binding not finding model in Controller

I am writing a directive which could be used at multiple places. The only requirement is that Controller using the directives will have their own model budgetCategories. My Controller looks like ...
1
vote
1answer
24 views

How to show and hide an element in my case?

I am trying to show and hide an element when user clicks my ul element I have something like <ul ng-click="expandMenu =!expandMenu"> //when clicks ul, the wrapper shows </ul> <div ...
2
votes
3answers
30 views

AngularJS Expression in Expression

Is there a way to have AngularJS evaluate an expression within model data? HTML: <p> {{Txt}} </p> Model: { Txt: "This is some text {{Rest}}" } { Rest: "and ...
0
votes
0answers
20 views

Best pattern for maintaining large data in angularjs

I am a relatively newbie in Angularjs. I understand that we can use an angular service to store the specific data and cookieStore can be used for storing a small chunk of user specific data for ...
1
vote
1answer
16 views

HTML tag in scope of angularjs

I need to put a <br /> tag in $scope.myText in a controller, how to do that ?
0
votes
1answer
12 views

How to call a function on the scope from a string value

I have an object containing an array of strings $scope.actions=[ "add_inscription", "add_tools", "add_instruction", "remove_inscription", "remove_tools", "remove_instruction" ...
0
votes
1answer
13 views

angular-google-maps does now show correctly when it's hidden at start

When map starts hidden with ng-show/ng-hide, it does not show correctly once visible. Same trouble with a standard map, only we can send a resize to it since we have access to the map object. Here's ...
0
votes
1answer
19 views

Can you use ng-switch and ng-if together?

I was trying to use both the angular ng-switch and ng-if directives together, but it doesn't seem to be working. What I was doing was: <div data-ng-if = "x === 'someValue'" data-ng-switch on = ...
1
vote
1answer
16 views

AngularJS: Highly Dynamic Routing

Hi, I am currently looking to implement something like this (AngularJS): $routeProvider .when('/root/:controllerName/blah/:blahId/blah/:blah', { templateUrl: ...
0
votes
1answer
19 views

How do I mock a service that returns promise in Angularjs Jasmine unit test?

I have myService that uses myOtherService, which makes a remote call, returning promise: angular.module('app.myService', ['app.myOtherService']) .factory('myService', [myOtherService, ...
0
votes
1answer
16 views

Checking Angular Dependency Injection

Is there a way that I can confirm that a module has loaded the correct dependencies? I have included ngAnimate as part of the module definition, but it does not "seem" to be loaded into the ...
0
votes
1answer
27 views

ng-switch is not working in some cases

I'm building some login module with angularjs. Here is the code: I have main page html: <div id='main' ng-controller='LoginController'> <div class='yomate-header'> <div ...
0
votes
1answer
6 views

Tail on flash game graphic when using ng-include, no tail on graphic without

I just embedded a flash game on my website (angular/node/express) using http://ngmodules.org/modules/angularjs-media like this: <div class="container hero-unit"> <flash width="400" ...
0
votes
2answers
31 views

How to add click event to element in my case?

I have a directive like the following var app = angular.module('app', ['ui.bootstrap', '']); app.directive('myNav', function () { return { restrict: 'E', templateUrl: ...
0
votes
1answer
30 views

Architecture design patterns used by AngularJS

What are the architectural design patterns that the AngularJS Codebase follows?
0
votes
0answers
13 views

ngAnimate a DOM element that is part of a template rendered using UI Router

I have this example project that uses UI Router and template files to render DOM elements. http://plnkr.co/edit/3KgB5g What I would like to achieve: The headlines fading in when you click on ...
0
votes
1answer
20 views

angularjs load indicator doesn't clear when page is reloaded

Using the following code, my loading indicator appears to work. However, the loading indicator does not disappear if someone reloads a page in the browser. This does not happen on the index or root. ...
-1
votes
1answer
28 views

ng-repeat for object (hash) in AngularJS [duplicate]

The normal way of learning ng-repeat is as follows <li ng-repeat="item in items">{{item.attribute}}</li> and you would have a controller such as app.controller('myCtrl', ...
0
votes
0answers
23 views

D3.JS: implementing Force-Directed Graph for my tag data structure

I'm trying to use the Force-Directed Graph in my application. But I'm really stuck in implementing it with my tags data. My tag data structure is like: for each Tag{ "name":<The name of the ...
0
votes
2answers
35 views

ngModel don't upate deep level

When I have a ngModel with more that one level and I modify the value programmatically in the scope, the value is not updated in the UI. If I put a $watch on the same property, it works. How can I fix ...
0
votes
1answer
23 views

How can I filter for child properties inside a repeater?

I have a repeater set to filter based on a few things. I am having issues filtering on child attributes, however. I have a selector populated with category IDs: <select id="searchByCategory" ...
0
votes
2answers
36 views

AngularJS Directive Passing Unknown Number Of Functions

I understand that when writing an AngularJS directive that you can bind a function in the parent scope to the directive scope by using "&" in the directive scope like so: ... scope: { ...
0
votes
1answer
17 views

ngTable custom refresh action?

I have a table showing data from a remote server. There is a numeric input, when the number is changed I want the table to be refreshed (with the numeric input in arg). Here is my current attempt: ...
0
votes
1answer
26 views

Angular POST to Node Server

I am trying to learn angular and I have run into a problem. I have a form that submits an Item Name, Price, and Image to MongoDB. In my Node route I am using res.json as the response. While using the ...
3
votes
2answers
51 views

Client-side MV* - Should the model have a save method?

So this is a generic pattern question but one I have been going back and forth with for some time. Should a model have a save method in MV*? I often jump back and forth between Knockout, Ember, ...
0
votes
3answers
19 views

How to maintain binding when input button is clicked using webmethod in angular

I am trying to update my angular model using a known working webmethod (.net). I get data back from my webmethod logged to the console successfully. It updates the input-box value as well. But ...
0
votes
1answer
30 views

Developing a full public facing enterprise app with AngularJS

Good day All, I am working on a public facing web app, which is work in progres, the front-end is 100% based on AngularJS, UIBootstrap, CSS, HTML. So, we have the user form-action invoking restful ...
1
vote
2answers
25 views

How can I keep the parent from displaying when the child is filtered out?

Here is my repeater: <div ng-controller="EventController"> <div class="input-group" id="search"> <label>Search:</label><input type="text" id="searchField" ...
0
votes
0answers
18 views

AngularJS/Flash (how to embed flash video in angular html partial)

I have been going around in circles trying to embed a flash game in an angular html partial - I have the game loading without any errors, except when I right click on the blank flash screen, it says ...
0
votes
0answers
33 views

Angularjs - auto-scroll to location

I'm using ui-router with Angularjs and I would like to know how to make the screen scroll down (hopefully with easing to make it look better) to a specific part of my homepage when a user clicks on a ...
0
votes
2answers
23 views

How do I get access to a specific parent scope when I have nested directives?

I'm attempting some Angular and I still have my JQuery head on. I have a div which contains a dropdown nav which contains a link. When the link is clicked I want the div to go away and be replaced by ...
1
vote
1answer
27 views

How can I toggle the value of a variable with a delay?

My AngularJS code fetches data like this: this.retrieve = function (contentStatusId) { $http({ url: '/api/Content/Retrieve', method: "GET", params: { ...
0
votes
1answer
14 views

How to send a date as JSON string to symfony2?

I try to send data from a HTML form to a REST API which is created with the Symfony 2 PHP framework. The form data is processed with javascript (AngularJS) and send as JSON string to the API. Sending ...
-1
votes
0answers
13 views

routeparams not working in ng-repeat NO RESPONSE

Im working on a shoppingCart project and want to bring data into views dynamically so Im calling routeParams in template.html but it is arriving normally as checked via but it isnt working with ...
0
votes
1answer
16 views

AngularJS select-like control from dropdown menu

I want to make the drowpDown menu list disappear when I click a list item, I tried to modify the css class of the div, but with no luck. What I am trying to achieve is a cool looking dropdown select ...
-1
votes
0answers
31 views

Scope is not being updated by bound variable - AngularJS

This is an odd problem that works in a Fiddle, but not my app. I'm starting to think that it's due to my routing and Fiddle does not support this. Here is my code: UPDATE: I noticed that ...
1
vote
1answer
14 views

Tab-off ui-bootstrap typeahead only when row is explicitly selected

I've created this jsBin to demonstrate the issue I'm having. If you go here, try type "Five" and move on. Your natural reaction would be to type "Five" and then press tab, and if you wanted ...
4
votes
1answer
27 views

Turning off $routeprovider when using bootstrap

I have some normal routeprovider code, but in a certain section of my HTML I have some twitter bootstrap expand/collapse sections. Clicking on them triggers the routeprovider, which I don't want to ...
0
votes
0answers
17 views

How can I group data in a repeater?

I have a simple repeater setup: <div ng-controller="EventController"> <div class="input-group" id="search"> <label>Search:</label><input type="text" ...
0
votes
3answers
22 views

Multiple view for Single Router in angularjs

I have a common HTML where the header got to change after login. <div class="masthead clearfix"> <div class="inner"> <h3 class="masthead-brand"></h3> ...
3
votes
2answers
37 views

Couldn't able to pass the anchor tag id value through ng-click in Angular JS. Getting undefined value

I'm a newbie in AngularJS please help me out to find the issue , code shown below ( html code part - 1 with js code part-2) is working perfectly in my browser and I'm getting the alert. Html Code ...
1
vote
1answer
95 views

Angular promises using multiple http requests

I have read a few forum posts before on angular promises but can't get it to work in my instance. I am using nodejs /locomotive for the backend and Angular form the frontend. I have the following ...
2
votes
3answers
90 views

click function is not working in jquery if an alert function is not before it

i have created a preview playlist using ng-repeat, but click function on preview image is not working properly. here is my HTML code: <div class="imgBox" ng-repeat="playlist in ...
0
votes
1answer
219 views

AngularJs - ng-options not binding after ajax call

I try to change the selected index of ng-options after ajax call, but it won't change. //Html Section... <select id="fooId" ng-model ="foo.formula" ng-options="formulas as name for (formulas, ...
4
votes
1answer
3k views

AngularJS: ngTouch 300ms Delay

This Plunkr has 2 links. The one on the left side is using the ng-click directive with the on angular-touch module inserted. As said in the angular touch module description for ng-click, the ng-click ...
0
votes
3answers
5k views

adding and removing classes in angularJs using ng-click

I am trying to work how to add a class with ngClick. I have uploaded up my code onto plunker Click here. Looking at the angular documentation i can't figure out the exact way it should be done. Below ...
2
votes
1answer
792 views

Protractor testing: How to set the value of text elements in a login form?

I am writing tests in Protractor for an Angular app. I want to fill out a login form and submit it. How can I do this? I have got this far, but I don't know how to set the value of the email and ...
11
votes
2answers
3k views

AngularJS Binding to WebGL / Canvas

I'm very green to AngularJS. I'm wondering if it's possible to use it when your view is using HTML5 Canvas or WebGL? If so, are there any good tutorials on how you go about this? I've seen several ...
17
votes
3answers
30k views

Angular JS: ng-hide and ng-show API

I have a HTML page containing several <div> containers. I require to show these <div> containers based on the user id. For example: I have 4 <div> containers created in a page say ...
157
votes
9answers
60k views

Delaying AngularJS route change until model loaded to prevent flicker

I am wondering if there is a way (similar to Gmail) for AngularJS to delay showing a new route until after each model and its data has been fetched using its respective services. For example, if ...