1
vote
2answers
14 views

Avoid referencing parent scope in angularjs directive

I am writing a directive to display data from server in an HTML table called djlist directive('djlist', function(urls) { return { restrict: 'ACE', templateUrl: ...
0
votes
0answers
20 views

ng-repeat IE8, parentNode is null or not an object

I'm using AngularJS 1.2.0-rc3, I also tried AngularJS 1.0.8 and the other release candidates, but this problem keeps popping up. I have an ng-repeat in my template that gets it's array asynchronously ...
0
votes
2answers
21 views

Angular JS ng-if not working within ng-repeat

I have an array of objects in scope, which I'm looping over with ng-repeat. I want to filter out some elements based on their values, but it seems like ng-if is completely ignored. I've set up this ...
3
votes
1answer
32 views

How to avoid or skip module load error in Angular.js?

//index.html <html ng-app="app"> //app.js angular.module('app', 'test-module') If I don't register the test-module in any of my scripts like below: angular.module('test-module', []) I will ...
0
votes
1answer
24 views

Angular js binding with normal html element

I was trying angularjs bind functionality. I had one scenario where i have a form tag inside "ng-app" tag <form name="CollectMFPToEvaluate" > <input type="text" name="name" ...
0
votes
1answer
19 views

How can I act on a hashchange event in AngularJs

I'm a newbie to AngularJs. What I'm trying to do is update the page on hashchange events. What I currently do (and know is not the "right" way to go) is: <!DOCTYPE html> <html> ...
0
votes
2answers
46 views

Unable to remove html tags from response JSON

Hi I am new to AnjularJs. I am having a problem to parse JSON data to proper format. Actually The JSON response itself returning HTML format data(it contains HTML tags like &lt,;BR,> etc). If I ...
0
votes
0answers
24 views

How Strict is the rule no dom manipulation inside controller in AngularJS?

I know in AngularJS We are not supposed to do any dom manipulation inside a controller. But If i need to do a dom manipulation on click of an element then how am i supposed to handle it. For example ...
0
votes
1answer
38 views

how to show li tag based on index value in angularjs

i have a html like this, <div class="main"> <ul> <li ng-repeat='save in saves'> <h3>{{save.name}}</h3> <div > ...
0
votes
0answers
33 views

Two directives use true scope , one is parent of the other , why?

This is Plunkhttp://plnkr.co/edit/MlsOkwcrrHc2fnvZrWPI?p=preview. (please ignore test and amp directives, they are useless) CLOSED Reason for closing this question: I add more log and add variable ...
0
votes
0answers
13 views

Using AngularJS' ngAnimate when removing an item from scope

Very simple question: In AngularJS 1.2.x, is it possible (and how) to get ngAnimate to fire when removing an item from scope? Here's an example Plunker: ...
0
votes
1answer
31 views

in angularjs, how do I access a formController?

when reseting the data in a form, wish to set form.setPristine(), but the formController is not yet registered in $scope. this may seem like a dumb question, but how can I find the formController? ...
0
votes
1answer
16 views

AngularJS Manually Bootstrapping a module

My html... <body id="main"> {{pageName}} </body> My JS: angular.module('myApp',[]) .controller('myController', function($scope){ console.log('init'); $scope.pageName = 'My ...
0
votes
3answers
29 views

initial $broadcast from service is received in controller under <head> but not under <body>

I have a directive that reads sync data from <title> tag. Then it trigger a service which $broadcast the data to all controllers. But the controllers under <body> tag are not receiving ...
0
votes
2answers
17 views

Angular and Animate.css - Doesn't display correct information when used together

Having a bit of trouble with putting together Animate.css and AngularJS together, and I created a simple example hoping to make this problem solving a bit either. I have some information being sent ...
0
votes
1answer
14 views

AngularJS display only belonging subarray

I am working in a project that requires me to list some items from a top level of multidimensional array as check boxes and then depending on which of the items a checked I am supposed to display only ...
-1
votes
1answer
57 views

I don't know what to use to build my application. Backbone, Angula, Knockout, etc etc? [on hold]

I have an application that I've developed using Javascript and JQuery. I've created all the features I need and now I'm trying to figure out how to design it. I'm very new to web deisgn and I'm trying ...
0
votes
1answer
25 views

angular $http is returning status 0

I am using angular 1.0.7 Here is my HTML: <section id="mcslsearch" ng-controller="McslSearchCtrl"> <div id="search_wrapper"> <form role="search" id="search_form" ...
0
votes
0answers
25 views

Angularjs load view and async data

What i'm trying to achieve is some kind of live search. You see an input field and a button, if you press the button an action will be called -> $scope.getResults(). The function should load the view ...
0
votes
1answer
24 views

Trying to dynamically display a model using Angular

I'm having trouble trying to dynamically display all o the json values in angular using ng-repat here what what I'am hoping to replacate using hard coded values html <div ng-repeat="user in ...
0
votes
0answers
20 views

Fixing AngularJS 1.2.0 [$parse:isecprv] errors

AngularJS 1.2.0 just got released, and there's an instant problem for CounchDB and MongoDB users: When trying to access some JSON data preceded by an underscore, like {{data._id}} Angular 1.2.0 gives ...
2
votes
1answer
30 views

How to make a 'top-level'-controller in angular-js?

AngularJS newbie here.... I have a basic framework of an app located here: http://robersonsoftware.com/angularTest/ The app contains an app.js and a couple of sub-models/controllers. app.js: var ...
0
votes
1answer
20 views

AngularJS multidimensional arrays

I am looking for a way to bind data from a three dimensional array in the scope with my view.. My scope (short version) looks like this $scope.publicationData = [ { pubId:'1' , pubName:'Level 1 ...
0
votes
1answer
15 views

Set default value for dropdownlist using angularjs?

I have code that populates then dropdownlist and the javascript variable that gets the last item in the list. Now all I want to do is select that last item as the default .What am I missing ? <div ...
0
votes
2answers
27 views

Sorted large list of objects

I need to handle a large list of objects (in that case, sprites in a game) in a particular order, determined by one of their property (in that case, the zIndex of the sprite). I acquire the objects ...
0
votes
1answer
12 views

getting the value of a pseudo-element with protractor

I'd like to verify the text content of a pseudo-element. The promise returned from using ptor.executeScript("window.getComputedStyle(jQuery('.my-class')[0], ':after').content").then(function(data){ ...
0
votes
0answers
24 views

how to set active on angularjs bootstrap tab

am using Angular Bootstrap UI to show a tabset with static content (using AngularUI bootstrap). Here is the plunker link that illustrate my issue http://plnkr.co/edit/n8Xp3GrAqlbNxZ7VrXR6?p=preview ...
0
votes
1answer
31 views

AngularJS: how to make a jsonp request

I need to do some cross site scripting. The block of code below contains the method of jsonp, the method returns as if it failed, but when I change it to be a get request I then have success. I need ...
0
votes
1answer
33 views

Getting data from modal AngularJS

I am trying to get data FROM modal to invoking controller, and all the examples I have found only describe way to get data to modal. What is the proper way to do it? This is a form I am using in ...
2
votes
2answers
25 views

Javascript - Execute HTML/Angular ng-include

I'm using AngularJS to design a small app for searching. I have a div that's currently empty, and after running a function, for it to replace it with a div that has ng-include. The div replaces just ...
0
votes
1answer
17 views

How to make protractor press the enter key?

I've tried this: ptor.actions().keyDown(protractor.Key.ENTER).keyUp(protractor.Key.Enter).perform(); which gives the error: Error: Not a modifier key
0
votes
3answers
19 views

How to use ng-click with multiple expressions?

I want to use ng-click to perform multiple expressions. I want to both set a value on a model, and call a method from the $scope, like this: <a ng-click="navigation.book = book && ...
0
votes
1answer
26 views

Angular JS How to get all rows of a repeater with Protractor?

I have a table with all users and I want to search for a user with the column {{user.name}} === 'X'. When I found the right row I want to delete the entry with a click on the last column of the row. ...
0
votes
0answers
27 views

How to correctly work with custom attributes inside a directive

I would like to create a directive which simplifies the work with tables for an application of mine. Do i understand correctly that custom data-attributes (e.g table-headings) are the way to go when ...
1
vote
4answers
36 views

having troubles with promises angularjs…console log not working with an http request

I'm having troubles making an http request in angular js. I know the call is being made because I can see the response in firebug which is, [{"cube":"1" ...
0
votes
0answers
21 views

Angular JS, node.js and sails.js infinite loop

I have made my frist angular + node.js app, works fine so far local, after I uploading this to server, I can't use the application: http://sails.webdepot.info:1337/#/home You can see multiple ...
0
votes
0answers
15 views

ng-grid and boostrap tabs won't render in Internet Explorer 9

I'm having boostrap tabs in my code working fine. But when i put an ng-grid inside of any of them this grid won't render, angularJS(last version ) works fine but te grid disapears in Internet ...
-1
votes
2answers
32 views

How to access the properties of returned json object? (AngularJS)

I'm trying to do an api call to facebook (using angularJs. Here's my code (taken from the service): fbTest: function (name) { resource = ...
0
votes
2answers
21 views

dissociate Firebase object from current scope

Let's say I have a list of items: list.html <div ng-repeat="item in items"> <span ng-click="editItem(item)">{{item.title}}</span><br> </div> And I want to edit one ...
0
votes
0answers
38 views

AngularJS - Populate select list with objects in array

My json coming in looks like this $scope.data = { "label": "Category", "categories": [ { "N": "New" }, { "R": "Regular" } ] }; Having a ...
0
votes
0answers
19 views

how can i fix it url characters is not supporting and facing error 404 on post request Angular js

i am new one with angular js so in url characters is not supporting how can i fix it and facing error 404 on post request here i am attaching my code and error if any one can help must be ...
0
votes
0answers
15 views

Angularjs hide/show vs unload/load when routing changes

Let's suppose we have a search view containing a form and a grid giving the results. By clicking on a grid row you go the detail view. I would like that by clicking on the browser back button the user ...
0
votes
1answer
50 views

Angular JS promises, JSON data and funny timings

I'm really struggling with the promises here. It's more than a day now, and I still can't figure it out. I'm new to Angular and, more in general, to the promises "concept", so I'm sure there is ...
0
votes
0answers
23 views

Angular mixing two views on the same page

I have an angular app with three controlers, one is for main, other for internal content and other for internal video. When you navigate the app using the page buttons there's no problem, but if you ...
1
vote
1answer
38 views

angularjs with ng-grid master detail paradigm that has multi-select with modal

Apologies for the confusing title. So I have multi-select + ng-grid working here . For anyone who isn't sure what the master/detail paradigm is. I select a row from my grid and expose all of ...
0
votes
1answer
16 views

Access Angular service when manually bootstrapping / initializing

Is it possible to access to a method of a factory service, before Angular has been bootstrapped, similar to the code below? I need to make a number of AJAX requests before Angular starts in order to ...
0
votes
4answers
39 views

Creating elements Dynamically in Angular

I have very little javascript experience. I need to add a menu on click of an item. We have been asked to build it from scratch without using any library like bootstrap compoments or JQuery. We are ...
0
votes
1answer
31 views

Override $digest and $watch in Angular JS

Can anyone suggest how do I create a service to over ride angular js default $watch and $digest loop? My requirement is to $watch a scope object with a listener and the listener function should have ...
0
votes
1answer
29 views

Directive should take data from template OR from controller

I am new in angularjs. I have a directive that shows countdown to endDate. Everything works fine with a hardcoded value: var endDate = new Date("2013-11-26T10:00:00Z"); But I can not manage how to ...
2
votes
0answers
68 views

“Swapping” divs and data in AngularJS

Not sure the best way to word this, but I'm trying to replicate something similar to Tinder. A video demonstration of the UI is here: http://www.youtube.com/watch?v=cdechGTbQfY Here's a Plunker of ...

15 30 50 per page