0
votes
0answers
7 views

IFRAME not loading in parent frame when called from HTML page

We have 1 IFRAME present in asp page. And 1 HTML page where we have redirected to the parent IFRAME on click of anchor tag using angular.js. In HTML page we have code as given below present inside ...
1
vote
0answers
15 views

Is there a way to disable triggering of $digest on every $http.get?

Background angular's $http service is triggering a $digest on every get (if no $digest is already running): if (!$rootScope.$$phase) $rootScope.$apply(); Ia addition to fetching objects from ...
0
votes
4answers
56 views

Multiple ajax requests

I'm making multiple ajax request by encapsulate in a for-loop: for(var o = 1; o <= 2; o++) { $.ajax({ type: 'GET', ...
0
votes
1answer
17 views

angular ui router - having to click twice for view to update as expected (with demo)

I am a novice with Angular and just getting to grips with the AngularUI Router framework. I have one html page which contains a list of questions (each question needs its own url) and a results page. ...
0
votes
2answers
19 views

How to bind an array or an object from a shared factory?

I have an Angular factory called Model which is shared across multiple controllers. Basically this Model encapsulate properties and helpers methods. I'm trying now to bind this model with my view and ...
0
votes
1answer
62 views

make some 'li' in ul visible and hiding others

Check my PLNKR, as you can see in plunker: Menus are overflowing. 'moveLeft' and 'moveRight' button will shift menus by -/+ 1. If you reach to first and last menu, corresponding 'moveLeft' and ...
0
votes
2answers
15 views

Angularjs UI-router controller not update after resolve

I have a problem with using ui-router in Angularjs. The scenario is very simple, I have a list of users, when I click on the user's name, the view will jump to the edit form (this one is also the ...
1
vote
1answer
7 views

userServic won't pass data to back-end: Cannot read property 'protocol' of undefined - AngularJS

I have a Change Password feature on my User Control Panel that is not working. It pick's up values from input and passes them from controller to service, service receives them but when he treys to hit ...
0
votes
2answers
32 views

Angular JS - How can I sanitize HTML in a controller?

I'm trying to sanitize HTML in the controller as I'm trying to update the document.title dynamically with the title of the post. (I know that for SEO purposes this isn't recommended but I need to use ...
2
votes
1answer
48 views

Does $scope is automatically injected to controller in Angular js?

Initially I was thinking $scope is automatically injected to controller in Angular JS.But Now I am confused. I wrote a small snippet of code. index.html <html ng-app> <body ...
0
votes
1answer
10 views

Angular using fetched data outside function scope?

I'm returning a JSON object via a $http.get. I'm able to get the result set, and it's an array, but when I try to access the object outside the fetch() I'm getting undefined. Not sure what I'm ...
0
votes
1answer
14 views

Changing Navigation Menu using UI-Router in AngularJs

I'm trying to build a navigational menu like any social networking site i.e. If i'm logged-Out i Can see the input fields asking for Username and Password but if I'm logged-In then i get to see my ...
0
votes
2answers
30 views

Does Angular JS support Object Logging

I want to use Angular JS with MVC 5.0. And i want to log the complete class Object into database while doing operation Insert/Edit/Delete for this class Object. Does angular JS provide us with any ...
1
vote
1answer
14 views

Multiple views on one page with history in AngularJS using Angular UI Router

In my AngularJS app, I have an about page with several sub-sections. All these sub-sections are on the same page and part of the same template. However I want to access each section via it's own URL ...
0
votes
1answer
11 views

Minification error with django compressor

I'm using an automatic minification tool called django compressor. However django compressor minification seems to introduce errors. Updated script with semicolons: Before: var app = ...
0
votes
2answers
19 views

how to add icon in tab in angular js >

Hi Please help me i m in new in angular Js How to add icon in angular js My code is this <tabset panel-tabs="true" panel-class="{{demoTabbedPanelClass}}" ...
0
votes
0answers
11 views

IIS 8.5 javaScript relative paths not resolving

I have recently moved an AngularJS website from my development machine (Windows Server 2012 R2 IIS 8.5) to my production server (Windows Server 2012 R2 IIS 8.5). In my app.js file, the line ...
2
votes
1answer
30 views

Best way to work with angularJS and jquery's $('document').ready()

I have a bunch of pages given to me by a designer that has to be integrated with my existing project in AngularJS. The page that I have been given uses a lot of jquery . The one thing that is causing ...
1
vote
0answers
16 views

Plugin-driven Application Design with AngularJS

I’m searching for a way to develop a website that consists of several plug-ins. The website itself is basically only a container for the plug-ins. My scenario: A user logs into the application and ...
0
votes
1answer
19 views

Angularjs PATCH - undefined is not a function

I am trying to use angular $http.patch() function to call a API URl As recommended by these answers - 1 and 2 i have set Content-Type headers to application/json in the config. But still i get the ...
0
votes
1answer
14 views

How to access file uploaded by $http and HTML5 FileReader

I am trying to upload an image inside an Angular app, the code looks like this: var f = document.getElementById('product-image').files[0], r = new FileReader(); r.onloadend = ...
0
votes
1answer
35 views

Angularjs return data from the promise in controller's scope

Dear AngularJS savies, How to set $scope.data in the controller having a promise returned from a factory. All I can do is work with the data returned in the scope of the method of the factory's ...
0
votes
0answers
8 views

tinyMce not initialized upon second visit to angular partial view

I'm using tinyMce (the native one, not the angular ui directive)with my angular app. The text area which tinyMce converts to an html editor is located in a partial view (i'm using angular route). The ...
1
vote
0answers
27 views

Passing data from MVC model to an Angular Controller

I have an angular controller inside a mvc view. I need to pass data coming from the MVC model into the angular controller. Currently a developer is using ngInit directive to pass this data. In ...
0
votes
1answer
21 views

How does AngularJS traverse the Angular template (HTML + AngularJS Directives) asynchronously?

I was reading the AngularJS book by Brad Green and Shyama Sheshadari and came across the following text: The basic startup flow looks like this: 1. A user requests the first page of your ...
0
votes
2answers
29 views

angular ui router - using the same templateUrl and controller multiple times

I am using the AngularUI Router framework for the first time and wondered how I could improve the below code. Basically this all works fine but eventually (in the project I am working on) there will ...
0
votes
1answer
27 views

Can't access global variables in angular JS?

According to this question: Global variables in AngularJS the method of setting global variables is through a service or rootscope. However I'm finding that I can't access the global variable in a ...
0
votes
1answer
17 views

AngularJS - Include calendar from bootstrap-like MetroUiCSS

I would like to include in my project a calendar from Metro Ui CSS : http://metroui.org.ua/calendar.html But i don't know how to activate the calendar. I have included everything in the index.html (3 ...
0
votes
1answer
15 views

Angular set form action based on variable in scope

I've been trying to setup a search form where I can inject the form action attribute. In my form I have <form action="{{action}}"> Then in my controller I have $scope.action = ...
1
vote
1answer
27 views

Creating Dynamic ng-model in AngularJS

Following is the working code - http://plnkr.co/edit/6lRhiTd1BrKRdThY0WNB?p=preview In this if you select the number from drop down and fill data then click and check console you will see the result ...
0
votes
1answer
19 views

ng-repeat not working properly when using key and value

In my program iam trying to display the resultant array using ng-repeat with key and value but is not working properly.But the output is displayed correctly in console. I think its a simple ...
0
votes
4answers
23 views

I want these functions to be accessible to every js controller throughout my application. How do I achieve this?

I have a few functions that do redirection on angularjs: $scope.a= function() { $location.url('/a'); return; } $scope.b= function() { $location.url('/b'); return; } $scope.c = ...
3
votes
2answers
38 views

How to show the count down in angular js

Trying to create a count down demo, using angular js. Once am in idle state for 30 seconds, i need to show the count down starting from 10 to 0, How to implement the count down timer. this is what ...
0
votes
1answer
19 views

toggle custom sorting icon in angular js

I have been trying to put a custom grid style and sorting icon in angular js and have succeded to do so far also except for the toggling of sorting icon here is my html code of headers <div ...
0
votes
1answer
17 views

Prevent page template changing when the link `href='#'` in routeProvider

I've been migrating my projects from JQuery to Angular.js I have several links that targeted to '#', for example in bootstrap dropdown: <a href="#" class="dropdown-toggle" ...
1
vote
1answer
33 views

Angular controller getting called twice

I've seen this issue asked however, I'm a little stumped with mine. Solutions state to remove one of the controllers. So when I remove the ng-controller=sigSearchResults from the body tag, my results ...
0
votes
0answers
10 views

Why are my characters getting screwed up? (angular gettext's translate filter + $scope.$eval)

I'm using Angular-Gettext. Here's my code: var result = $rootScope.$eval('"Description" | translate'); console.log(result); Here's the output to the console: Descripción Whereas my es_VE.po ...
-1
votes
1answer
50 views

Angularjs how to create image gallery [on hold]

I'm new to angularjs, maybe someone can help me to learn. I want to create an image gallery that has buttons to switch from one image to another. how to create an image gallery with angularjs? and ...
0
votes
2answers
14 views

AngularJS $http posting object containing array strange behaviour

I have a function which uses $http to post params. The thing I don't understand is that the filters param contains an array. However, the server interprets this array as a key/value pair for each ...
0
votes
0answers
28 views

Animation in angular

I am trying to achieve animation with angularjs. Please see the plunkr below for the code. "http://plnkr.co/edit/S7lcL2Iz10S10j9Or2qc?p=preview" <div class="container" ng-repeat="person in ...
1
vote
0answers
14 views

Combine GridLayout and ScrollView in Famo.us JS

I'm trying to insert a grid layout into a scroll view in famo.us (using famo.us with angular) and the most obvious way is working <fa-view> <fa-scroll-view fa-pipe-from="eventHandler" ...
0
votes
0answers
9 views

unit test angular $event with jasmin

what would be the best way to test this directive function? $scope.addToToList = function(event){ var offset = $(event.target).offset(); addToListService.showPopUp(offset.left, ...
2
votes
2answers
32 views

Angular $watch property on all objects in array

I am trying to understand how best to achieve the following in angularjs. 1) I have an array of objects: $scope.myArray = [{special:false, name:'alice'}, {special:false, name:'bob'}]; if ...
0
votes
2answers
26 views

$watch an attribute only after certain event

Im learning angular and i'm trying to build a form that: 1.on-blur checks if an attribute value is unique or not. 2.if the value is not unique then it starts watching the value and gives or deletes ...
0
votes
1answer
10 views

angular passing index of currently selected item (in select list)

I am trying to pass through the index of the currently selected item so that I may use it's index to dig deeper into some nested array. Here's what I have so far. my controller: $scope.scope1Change ...
0
votes
0answers
20 views

$compile breaks ng-repeat

So I am trying to loop over a list of elements generated by an ng-repeat, tag them with a directive (in this case ng-show), and then re-compile using $compile. The problem I am running into is that ...
0
votes
1answer
27 views

AngularJS Providers and Models

I have an angularjs front-end that talks to a Web API backend. I am new to this framework and unsure of how to pull complex data from the web api into my application $scope. I will then be using ...
0
votes
0answers
19 views

PHP data from route in AngularJS

I am sending a variable to a PHP file as a parameter on a route with AngularJS. The PHP file then returns an array of objects in a Smarty variable that I would like to use in a normal ng-repeat in the ...
0
votes
0answers
11 views

Override angular services during config phase for Live/Mock feature with the same app

I am trying to get my angular application work in live mode as well as in a prototype mode just by overriding the services. As a part of this when the prototype mode is turned on in the config, i halt ...
0
votes
1answer
14 views

Observing changes across controllers in angular

I have an angular application with two controller. Here's a simplified version of the code: var app = angular.module('walkerApp', ['firebase']); app.controller('AuthenticationController', ...