0
votes
1answer
16 views

Angular, prepopulate data with .run then pass into factory

New to angular here. I am trying to data then pass it into a factory for use. I am trying to get the events to fire in a certain order with using the $http within angular. I was pointed in the ...
0
votes
1answer
17 views

error with an angularjs filter

Based on this jsfiddle : http://jsfiddle.net/2ZzZB/56/ i add the filter solution for my app : http://www.monde-du-rat.fr/zombieReport/popup.html#/ratousearch (ctrl : ...
0
votes
0answers
4 views

Angular-UI typeahead in ng-repeat as a conditional for certain properties/objects

Let's say I have this data that feeds into my ng-repeat: [ { "name": "Big Bird", "address": "abc street, san francisco california 00000", }, { "address": "abc street, san francisco ...
0
votes
0answers
21 views

angular.js on dynamic fetched data

Can you use angular on dynamic fetched data? I have an existing application where most of the content is rendered by javascript after ajax-call. So I have this div that is filled by fetching data with ...
0
votes
0answers
3 views

Error: malformed URI sequence with MVC5 angular bundle

I have a script bundle that consists of: angular.js.min, ui-bootstrap-angular.min.js, and my master.js file in that order. Everything works perfectly fine in the dev environment, but when I deployed ...
0
votes
1answer
8 views

Ember - Asynchronous data in nested view

I have a list of messages. When a particular message is clicked it loads the details. This part works fine. I want to load some other related data asynchronously when the clicked message is loaded. ...
1
vote
0answers
17 views

AngularJS how to create a reusable template for Bootstrap modal

So I am using the AngularJS Bootstrap modal (http://angular-ui.github.io/bootstrap/). Which is working fine but I was wondering if I could create a basic template that can take in a title and the ...
0
votes
1answer
24 views

Angular.js Service function undefined

I'm having a controller and servise (I will post all of controller and service code because I have no idea what could be wrong) : Controller: 'use strict'; app.controller('membersController', ...
2
votes
2answers
26 views

same url ('/') with different templates based on login status in AngularJS

I'd like to know the best practice, how to set up routing and templates in AngularJS to show a different front & login area to visitors, and then show a dashboard to logged in users on the same ...
0
votes
0answers
15 views

angular datatables issue with $resource

I've got angular.js, jquery and angular-datatables packages downloaded via bower. Also I've got mvc api with data source which I'm fetching via // angular controller $scope.data = ...
0
votes
1answer
20 views

AngularJS filters - search multiple fields

What I am trying to do is search by multiple fields of a repeat in combination. The issue is when I search by query.$ model I can't search from multiple fields. What I'm looking for is to search for ...
0
votes
1answer
16 views

Promise not expecting a resolve or a reject

To test one of my AngularJs Service I was writing to Unit tests. Here is a sample code I've came up with : it('', function(done) { aDocument.retrieveServiceFile(extractedFileFeature) ...
0
votes
1answer
11 views

Update $scope when contenteditable Elements Change with Angular.js

I am new to Angular.js and have tried to follow several tutorials to learn how to two-way bind contenteditable elements in an ng-repeat. I am using a shared 'store' between controllers, e.g. ...
0
votes
1answer
17 views

How to handle object property changes in Angluar?

I have an object with id and name like this: function format(id){ return '(' + id + ')'; } function MyObject(id){ this.id = id; this.text = format(id); } I'm using angular and I have ...
0
votes
1answer
8 views

Trigger $scope.$watch when static attribute changes

I have an element with a custom directive on it as so. <div my-directive data-progress="0"></div> my-directive is as follows. return { scope: { progress: '@' } ...
0
votes
1answer
11 views

Ui-router route parameter with regex

I feel like this is simple but I can't get it to work... I am using Ui-Router 2.11 which includes optional parameters with regex expressions. I have this url which works '/event/{eventId:[0-9]}' ...
1
vote
2answers
23 views

Set a width of a div as a percentage of parent in angular.js

I have a bar graph in Jquery that I want to recreate in angular. The graph is just stylized divs thats width are set to a percentage of the parent as shown below $('.item-skills').each(function(){ ...
0
votes
3answers
25 views

Bad order in angularjs ng-repeat

In my little playlist script : http://www.monde-du-rat.fr/zombieReport/popup.html#/radio The IDS are not correctly ordered : 1,10,11,2,3 ... My json is here ...
1
vote
0answers
32 views

Why do my breakpoints change position when I refresh my page with angularjs?

Each time I refresh my page, my breakpoint are moved to the end of my script. I have to replace them when the execution is paused, and only then I can debug my script where I want. This doesn't only ...
0
votes
1answer
8 views

Adding views to angular-seed project

How do you add more views to an Angular-seed project? I just started this project and wanted to add more views so I copied the view2 folder and renamed it view3 (did the same for all files in the ...
1
vote
2answers
22 views

Angular $http get works in browser but not on device - Ionic

I have a factory returning an object calling an internal resource containing JSON as so: .factory('cardFactory', function ($q, $http) { return { getOtherStuff: function () { var deferred ...
0
votes
1answer
14 views

how to make directive in angular of owl carousel?

can you please tell me how to make dirctive in angular js .I need to use owl carousel plugin in js as I did in jqm fiddle http://jsfiddle.net/ezanker/o9foej5L/1/ .I need to make same thing in angular ...
0
votes
2answers
21 views

Replace external JSONP with local json in Angular

I'm going to store a json-file on same server as this Angular-app, and wonder how I can change this code to read my locally stored json-file: ergastAPI.getDrivers = function() { return $http({ ...
0
votes
2answers
16 views

getting Error: shuffle(…) is undefined in angularJS

Doesn't matter when I put it in the app.js file it keeps getting undefined.. app.js (function () { var tkcApp = angular.module('TKC', []); var shuffle = function (o) { for (var j, x, i = o.length; ...
0
votes
3answers
21 views

Dynamically specify the controller to use in an Angular directive

I am looking to specify the controller that a directive should use via an attribute on the element - i.e. dynamically: HTML <div data-mydirective data-ctrl="DynController"></div> ...
0
votes
2answers
38 views

Syntax Error: missing: after property id

$scope.messages.$add({ $scope.phone : { username: $scope.username, email: $scope.email, dob: $scope.dob ...
0
votes
0answers
17 views

Reload angular directive to redraw morris.js charts after the API call

I'm using Morris charts with angular to show graphical reports in which the data comes from our backend server via an rest API call. I'm able to see the retrieved data in console log but it's not ...
0
votes
0answers
18 views

Get key and value from an ngOptions [duplicate]

How could I get the key and the value too from an ng-options element, if I load the data from an object, not from an array? HTML: <select ng-model="select" ng-options="value for (key, value) ...
0
votes
2answers
21 views

Angular.js: Update (data-bind) only one item of ng-repeat

I have the following html: <li ng-repeat="friend in friends"> <span ng-repeat="(key, value) in friend.aktuell"> <input type="text" ...
2
votes
0answers
16 views

Cordova plugins not working with ionic

I have an Ionic app built with Angular. I am using is Calendar plugin: https://github.com/EddyVerbruggen/Calendar-PhoneGap-Plugin I want to create events through the plugin and save them to the ...
0
votes
2answers
21 views

Service did not give the controller data from a .json file?

I want to get carData.json file from a server using AngularJS. Here is how I have structured it: I have a services.js file (inside of js forlder) where I hold all of my services and factories. Here ...
0
votes
3answers
35 views

Print Number in Given Format [duplicate]

I am trying to print numbers from 0 to 24 mod 12 using ng-repeat. But I want the numbers to be displayed as 00 01 02 03 04 .... 11 00 01 02 ... 11 and not 0 1 2 3... 11 0 1 2 .... 11 Can this ...
0
votes
0answers
14 views

Facebook Share using angularJS and html5mode(true)

I'm developing an angularJS app using html5Mode(true). In the header of my main index file I added <meta name="fragment" content="!"> so whenever google crawls any of my pages it will add ...
1
vote
2answers
29 views

why header come down when constant or fixed button add .?

I have one button which should be remain contant or fixed in same position in all views .But when I added a view , its header comes down below the button why ? when I remove this ...
2
votes
2answers
35 views

Check next event before executing handler of previous to hide autocomplete

I have an Angular input field which works like an autocomplete dropdown. I show the suggestions as input matches existing data. I have to hide the dropdown when focus is lost. <input type="text" ...
0
votes
0answers
21 views

Dynamics 2013 Accessing Page entities is hard to access with iframe based views

I am building an angular application which is running as a web resource on Dynamics 2013. The application runs using a button which is added to the commandContainer using Ribbon workbench which then ...
0
votes
1answer
25 views

Angularjs- Issue with updating $scope in the callback of $resource delete method (thinkster.io 3rd chapter)

I am using a controller in AngularJS as following (according to the 3rd chapter of the angularjs tutorial on thinkster.io: ...
1
vote
1answer
24 views

Accessing directive scope from a separate controller

Let's say i have a <lightbox> directive in AngularJS. The lighbox has two params: title and image_source, which in turn are referenced in its HTML with {{title}} and {{image_source}}. Because I ...
1
vote
4answers
34 views

My text not add in list item in Angular js?

HI I m creating a new form and fill some text and submit but my text not save Can u please help me If i click a button add new than show a form add details in the form and save but not save . I m ...
0
votes
1answer
19 views

Angular: removing ng-hide/show for print version of the page

I've got a webpage written in Angular that displays a lot of JSON data pulled from a server. To make it easier for the user to find the interesting data, we're putting everything into tables that are ...
0
votes
1answer
23 views

Create a factory/service for an object that changes dynamically, and that could be passed on to a controller

I have an object that updates via socket.io. var my_dynobj; socket.on('update dynobj', function(dynobj){ my_dynobj = dynobj; }); I want to have it in my angular app as a factory or a service ...
0
votes
1answer
27 views

sessions in Angularjs

Im building an login with angularjs and PHP. The problem I have is that the session not seem to have been set. I have this controller that uses a service when I hit the login button: Controller: ...
0
votes
1answer
25 views

Angularjs Linechart directive won't load $resource

This is the resource hq.factory('AvgUsersPerWeek', function ($resource) { return $resource('/HQ/Graph/GetLoggedinUsersPerWeek') }); The controller hq.controller('AvgUsersPerWeekCtrl', ...
0
votes
2answers
34 views

$http.get is calling the wrong URL

I am trying to call a URL from my AngularJS service. However, a specific call is not calling the correct URL. This is the code that is doing the call, with a console.log printing the same URL as the ...
0
votes
1answer
17 views

AngularJS - $compile-ing an element and passing the scope to it

I have a simple directive: <div my-directive> <span ng-click="reveal()">Click Me</span> <!-- And other stuff --> </div> When I press Click Me, a modal opens up ...
0
votes
1answer
54 views

HTML Page loads before AJAX call?

In my HTML Page, I have a button tag that looks like so: <button ng-hide="alreadyFreinds()" type="button" class="btn btn-primary btn-lg">Friend</button> However, when I try to access ...
0
votes
4answers
28 views

My angular controller is not working?

I m new in Anguar js . I have created a controller and pass the data but my controller not working can u please help me . My code is this Angular code is var app = angular.module('myApp', []); ...
1
vote
2answers
24 views

In AngularJS, how would you cache the data (for example, a list of top 10 news of today) you receive from Java?

I am fetching the list of news from the Backend and want to cache them and display them in HTML5 using the AngularJS. I am new to Angular and don't know the correct way to do this. is it possible to ...
0
votes
0answers
16 views

angular to load partials with js file and bind them with controller

I am trying load partial on ng-click function. i am loading js with partials. my problem is i am getting controller undefined error. I can places js in base and use angular.element to get scope of ...
0
votes
2answers
29 views

How to send array with other parameters to a web api using angularjs

I am sending an array of integers to the web api controller method successfully using angularjs $resource custom method without params defined. When I add other parameters with an array type parameter ...