0
votes
0answers
10 views

Assign included JS function to AngularJS scope

I am including a function from my webserver, and I need to include this existing function to my AngulerJS scope so I can use it in my view. I have tried this: $scope.getSymbolName = get_symbol_name ...
0
votes
0answers
9 views

Get button element of a submit form with angularJS

I would like to use Ladda (spinner on the button) on a submit button. The problem is that I don't know how to get the button element. When I use it on a simple button (type='button'), I just send the ...
0
votes
0answers
3 views

How to display photo selected from mobile phone under angularjs+phonegap

I use the below code to select photo from a mobile phone: $scope.changeImg = function(){ // Retrieve image file location from specified source ...
0
votes
0answers
24 views

How to make Angular directives evaluate from outside in?

Executable example: http://jsbin.com/secuz/5/edit?html,js,output Details The above failure contradicts my assumption about in what order Angular directives are processed. I would expect that outer ...
1
vote
1answer
11 views

AngularJS - factory not being called when URL changes

I'm new to Angular JS and struggling to get a factory to return data when my URL has changed. In my app config I have: .state('app.sessionActivity', { url: ...
0
votes
0answers
19 views

Angular not checking routes

In my current application I have a problem that my ui-bootstrap datepicker is only opening once. After I close, clear or pick a date it won't open again. The scope value is set as it's console.logged ...
0
votes
1answer
21 views

AngularJS - Binding to array not being reflected in directive

I'm writing a directive that can render a collection of controls. Each control is a directive called fsFilter - in my controller that controls the parent element, i bind the filters array to an array ...
0
votes
0answers
12 views

Angular js Slick slider not working with dymanic data

I am using github.com/vasyabigi/angular-slick for carousel in my angular js script. it is working fine with hard coded data. but not worked with dynamic data. using dynamic data it show vertically ...
0
votes
2answers
26 views

get index of ng-repeat inside of ng-repeat

I have a page where An array has an array inside it and is displyed using ng-repeat 2 times. <div ng-repeat="chapter in chapters"> <div ng-repeat="page in chapter.pages"> ...
0
votes
3answers
24 views

How to sort object in angular js with custom sort order?

i want to show array of object's properties in a custom sorted way. following is the array $scope.weekDays = [ { "day" : "TUESDAY", "count": 10 ...
0
votes
0answers
12 views

how to implement image browsing in minimum time from server using angular js?

i have following api to call so that i can browse image. api.me/1/render/{{imagepath}} and i have an api call(api.me/dir/{{shareid}}) which give array of imagepath my code for browsing images: ...
0
votes
1answer
44 views

AngularJS - Scope property

I have this HTML saved in a file. HTML : <!-- radio button 1 --> <input type="radio" name="radio1" id="radio-group1" ng-model="radio1" value="group1"> <input type="radio" ...
0
votes
1answer
10 views

Multi Dropdown JSON Filter Search AngularJS

I am new to AngularJS and writing an AngularJS application with four drop down (select) acting as the search criteria to filter the search result. Each drop down is populated by a field from the ...
0
votes
0answers
14 views

update scope in directive after async call

I have a directive used to simulate a loading pane: var loadingModule = angular.module('loading', []); loadingModule.constant('MODULE_VERSION', '1.0.0'); ...
1
vote
2answers
21 views

ng-src executing even if hidden by ng-if

Here's an example for my problem. (This is a simplified version, so it may contain typos...) # index.html <div ng-if="testIfThereIsAnImageToDisplay"> <img ng-src="{{url}}" ...
0
votes
0answers
15 views

How can I get an absolute measure of performance for my AngularJs applictions?

I am familiar with Batarang which is a good tool, but its performance tab only provides relative measures of your application's bottlenecks, and where Angular is spending its time. This is OK for ...
0
votes
0answers
28 views

Ok to use element.addClass in angular?

Loving using angular but want to keep to the "best practices" and not get into bad habits. Currently making a desktop application which is also available on mobile devices and found the bindonce ...
1
vote
4answers
36 views

Angularjs ng-disabled is disabling all of my buttons

I have a function that is called on a click. Once it has been clicked, I want to disable the button that was clicked. So far all I was able to do was to get ALL buttons to disable when I click just ...
-1
votes
0answers
12 views

AngularJs pop up in the exact location of a click event [on hold]

I have an AngularJs application. I added the AngularUI so I am using $modal for displaying a modal screens. I would like that in a specific location single pop up will be opened. The pop up will ...
0
votes
1answer
16 views

Angular drop-down and text input in same field and Angular data-binding

Is it possible to create a field input in angularjs, which can take value from dropdown and also has custom input. So the following two input options should be one, and user can choose value from ...
0
votes
1answer
26 views

Incorporating value from $http.get and $scope into 2 way data binding

I'm trying to have user input change a value on the scope using 2 way data binding. I think because the value is calculated inside of an $http success function it doesn't allow two way data binding to ...
0
votes
0answers
5 views

Instagram OAuth user data

I have an app for client side Instagram login. So far, user can successfully login into Instagram and recieve access token. The problem is that I want to make a request, and get the Instagram user ...
-1
votes
1answer
27 views

AngularJS - A directive to manage collection of directives is not being bound/rendered

'm new to angular so guessing this is an easy question to answer. I have written a couple of directives that essentially are controls. I want to write another directive that manages a collection of ...
0
votes
0answers
15 views

MVC 5 C# .NET Subdomain Angular

I am using a wilcard domain setup *.domain.com. I am also using attribute routing on a method in my controller Route("contact/submit") for example. When I hit the following method using angular ...
0
votes
1answer
24 views

avoid calling a function in angularjs on ng-switch / ng-if

I have a function called isShiftActive(shift) which is called to build divisions on my page based on its boolean value. The total number of divsions to be built are around 31*51=1581. The controller ...
0
votes
0answers
5 views

Pinch and zoom for google charts on a mobile device

Here is my plunkr for a google chart in angularJS http://plnkr.co/edit/fpUD3HrMATqAc3E4Uxdc?p=preview How do I get this map to be pinch and zoomable on a mobile device? Right now the 'explorer' ...
0
votes
0answers
19 views

Why is this Angular $http.jsonp call not working?

I'm trying to make a basic call to an api to get bitcoin rates. This is my code: $http.jsonp('http://blockchain.info/ticker'). success(function(data,status,headers,config){ ...
3
votes
1answer
26 views

AngularJS Directive Binding link: has no access to scope variables

I'm trying to write my first AngularJS Directive; it's basically a piece of code that blurps out a number of stars (badges) out of a maximum number of stars. The link: function() code in the ...
0
votes
2answers
24 views

AngularJS: PUT binary data from ArrayBuffer to the server

Ok, so I try to read a PDF file like this: reader.readAsArrayBuffer(file); and the try to send it to the server using $http like this: $http.put(url, data, {headers: {'Content-Type': ...
0
votes
0answers
7 views

Use dust templates with angular js

I am new to angularjs environment, I want to use angular using dust templates as the current application has dust templates but I could not find anything on how I can use my existing dust templates ...
0
votes
0answers
14 views

Organize long list of routes [on hold]

I am using angular-ui-router https://github.com/angular-ui/ui-router for route management now. However, my $stateProvider is very long with 50 - 100 routes: $stateProvider .state('state1', { ...
-3
votes
2answers
41 views

Benefits and drawbacks of using client side frameworks [on hold]

We are starting to use JavaScript more and more in our projects to improve the client experience. Currently most of our site posts back for just about every user interaction. We mostly use JQuery and ...
0
votes
0answers
3 views

Ionic - ion-item slide

How can I add slide support to my ion-item dose not like ion-option-button but slide until the end of the ion-item and label when you slide on it, like Archive slide in Gmail app. Thank you.
3
votes
3answers
27 views

Angularjs - ng-click not firing

$scope.testing is being added as the button Id correctly but clicking the button doesn't fire the alert. See example - http://plnkr.co/edit/RtidzgiUI7ZAMOTu3XHy?p=preview CONTROLLER var app = ...
0
votes
1answer
12 views

Angular-Route and the ng-view div hide the page

I'm trying to use angular-route, but when I change the div tag from <div ng-include="'views/main.html'" ng-controller="MainCtrl"></div> to <div ng-view></div> that tag is ...
0
votes
3answers
21 views

Angular: Passing data back to my controller from a factory ajax call

I've been playing with Angular and I've moved from working with local data (which seems to work fine) to trying to populate my view from an ajax call in my factory. Here's the code: <html> ...
0
votes
1answer
48 views

Search for the key in the given array of objects and replace the value;

Implementing the multiple sort functionality; Where need to toggle the array which hold the sorting fieldname and sorting order; Example Click Sort By Name: [{"sortKey":"name","sortValue":"desc"}] ...
0
votes
0answers
8 views

Complex URL states containing parameters with a dynamic template in angular/ui-router

I'm trying to set up a complex URL structure: http://example.com/quote/:param1/:param2/:param3/:param4 Each state uses the same template except for 1. My question being, is there a way to ...
0
votes
0answers
12 views

Angular JS disable touch scroll except on certain elements

I'm building a web application for deployment on an iPad and we're looking for an approach that will disable scrolling on the entire view, except for certain divs. Ideally it would be great to be able ...
0
votes
1answer
19 views

angular ng-options select wont select the current value as the select value

i have a select where I am setting an ng-model and a list of options. When I update the value it updates fine in the scope, however when I try to reload the page it wont start with the correct value ...
0
votes
0answers
18 views

why contend show multiple time in angular while using ajax call?

I have two problem in my demo .I am making a pop over .I should open on icon click(here is used star icon).when i click star icon I am able to see pop up screen as I want but problem is that when I ...
0
votes
2answers
29 views

Change the dimensions of the root element of an AngularJS directive

I have an AngularJS directive which is used in Element mode i.e. it is used as a custom tag in HTML. angular .module('myModule') .directive('myDirective', function() { return { ...
1
vote
1answer
27 views

ng-repeat absolute $index when using filter

I'm trying to get the absolute $index of the ng-repeat when using the filter. For example I have an array like this: $scope.notes = [ { name: 'note 1', value: '1' }, { ...
0
votes
1answer
15 views

Angular.js: Store div content in scope variable

I have an editable div and I want to store the HTML content in scope variable scope.myText: <div id="editor" contenteditable="true" ng-model="myText"> <p>HTML Text</p> ...
0
votes
0answers
13 views

ng-disabled not effective after content is loaded. the element is enabled again

I have a select dropdown element and its contents are loaded using init(). It has a ng-disabled assoictaed with it. But, the ng-disabled is not working, or the lement is re-enabled due to the change ...
0
votes
3answers
19 views

AngularJs Injector Module Error

i'm new in AngularJs (started an couple hours ago) and i'm trying to complete the AngularJs in 60 minutes'ish tutorial. But i got stucked on the first controllers example. This is my code: ...
0
votes
2answers
48 views

uncaught Error: [$injector:modulerr]

Recently I've started with Angular JS and I've created some routes that worked for some time. I'm not sure if I have done something wrong or not, but I'm getting a strange error and I'm not really ...
0
votes
2answers
14 views

Directive at angularjs and custom method/html

I have this code: <body ng-controller="testController"> <div test-directive transform="transform()"> </div> <script type="text/ng-template" ...
0
votes
3answers
29 views

why my ajax success data is not display in angular js

I am trying to call ajax and get my HTML contend .But I want to show that data on tooltip/or pop over .I am getting the data on console I don't know why it showing black data tooltip it is showing ...
0
votes
0answers
28 views

angularjs $resource $save not posting data

api/profile/:accountname/:profilename I am trying to use my api in a restful way using $resource. My data model is: each account has a list of profiles, and those profiles should have GET, POST, PUT. ...