0
votes
0answers
7 views

Iframe seems to be caching in AngularJS project

I am having an issue where my iFrame seems to be caching rather than using a new src or ng-src If I navigate via a link i am routed to the correct page - view is below - and the correct source is ...
0
votes
0answers
27 views

find all '#' and wrap in span in javascript

I have a message that I need to find all '#' and wrap in a span tag, to apply a class. My JavaScript currently only works if there is one single '#'. How can I loop over my array returned by the ...
0
votes
0answers
17 views

How can I override autoscroll=true on one page?

I am creating an SPA and need the links to scroll to top when going from one route to another. However, I want to disable that on one view as we are using a search that uses selects to update the ...
0
votes
0answers
6 views

Load AngularJS controllers variably with Browserify

I'm attempting to build a boilerplate using AngularJS, Browserify, and Gulp. I have all the Gulp tasks working correctly, along with Browserify. I'm now trying to figure out the best way to load all ...
0
votes
1answer
9 views

Does Plunker Support Multiple Views?

I am learning AngularJS and trying to test routes. I am wondering if Plunker supports this so that I can navigate different pages. Sorry if this is a stupid question haha, I am just not sure how to ...
0
votes
0answers
22 views

Angularjs create dynamic copy of global variable

I am creating a weather app with jQuery and Angular. Simply put, here's my code: (function() { forecast = {}; (function($) { forecast.head = "date"; }(jQuery)(); var app = ...
0
votes
2answers
23 views

Javascript Getter/Setter in Angular Service with 2 Controllers

I am messing with javascript getters and setters in my service layer. I am using 2 controllers. The first controller just displays some text. The second controller allows hiding it. I am trying to ...
0
votes
1answer
28 views

AngularJS Getting distance between multiple coordinates

Im writing an app that has a ton of locations, all with coordinates, I want the app to be able to search for the locations by name, or by which one is closest. I know how to determine the distance ...
-2
votes
2answers
23 views

Plnkr - How to add curly brackets?

Basically I just got started using plnkr.co. However every time I try to insert a "}" my HTML section gets crammed together as shown in the picture: I simply click shift+alt+0 and it gets crammed ...
0
votes
1answer
17 views

set data in factory and bind it to controller

goal: show an error in controller (errorCtrl), which can be set up in mutiple other controllers (i.e. modulCtrl) i try this by setting up a service (ErrorConsole). logViewApp.service('ErrorConsole', ...
0
votes
2answers
29 views

Angular scope deleted on splice

When trying to remove an item from a list using splice, my entire list is destroyed? what could be cause it? HTML: <ul class="nav nav-tabs"> <li ng-repeat="pane in panes" ...
0
votes
0answers
7 views

Getting Unique Firebase key ID Angular ng-repeat

I want to get name of this -JTmc5IS2RYNwLbogtrgr key and every single one, so I could navigate thru objects in ng-repeat. ng-repeat = "cat in Cats" {{cat.name()}} And I want this ...
0
votes
1answer
16 views

Asynchronous Request Appending to String in Angular

I am attempting to get the actual text from all of the stylesheets associated with the page. I can do this pretty well via something like sheets = document.styleSheets stylesheet_text = "<style ...
1
vote
2answers
20 views

How can I get ng-list behavior, but with a slightly different model?

For ng-list, you'd normally have a simple array for your model: [1,2,3,4,5] Instead, I have an array of objects like such: [{ id: 1, value: 2 }, { id: 2, value: 3 } ... ] Is there any way for me ...
1
vote
1answer
31 views

Angularjs 100 pages with same layout

I'm creating an angularjs app. The app has two templates, but 100 pages that use the templates. I don't want to have 100 static template files, I really only want two template files and the content ...
1
vote
2answers
19 views

AngularJS get $pristine state of an individual field

I have a form in Angular which contains rows of fields, where each row is an ng-repeat block: <form name="myForm><table> <tr class="item-row" ng-repeat="item in items"> <td> ...
0
votes
1answer
13 views

Upload a file with AngularJS and PHP

I want to upload a file while using AngularJS for frontend and PHP for backend. When I would leave Angular aside, my HTML form would look like this: <form enctype="multipart/form-data" ...
0
votes
0answers
10 views

Google Maps showing “Uncaught TypeError: Cannot read property 'offsetWidth' of null ” error on angular app

I have used Google Maps Search places sample to implement search places on google maps on my app. Google Maps Search Code used I have all the Javascript code in the section on my index.html page. I ...
0
votes
0answers
15 views

Why nested ng-grid height does not work?

I have a nested ng grid. var faculty = angular.module('faculty', ['ngGrid']); faculty.controller('facultycontroller', function facultycontroller($scope, $http, $window) { $scope.facdata = [{ ...
-1
votes
0answers
12 views

Ping on regular intervals in angularjs $stateProvider.state

In one of my state, I am requesting for data through resolve. Basically there are two parameters in resolve as shown below. First Resolve acts as a parameter for 2nd resolve parameter. All this ...
0
votes
0answers
25 views

How to Achieve a good angular render once

I have a situation where I need something rendered only once however after a lot of struggle I have not managed to achieve {{ something }} to only render once. So I have used a secondary method in ...
0
votes
1answer
17 views

Setting a global function in ionic Angullarjs

I have the following code, and added the reset function that I would like to use from ng-click at any place in any template. angular.module('starter', ['ionic', 'starter.controllers', ...
0
votes
2answers
22 views

Stop Angular routing links inside ng-view

I'm using Angular JS to dynamically load content like so: HTML ... <div ng-controller="MainController"> <div ng-view></div> </div> </html> Angular ...
0
votes
1answer
34 views

AngularJS: add filter to type=“number” input element before angular parse anything

My web application is for persian users and they may enter numbers in persian digits. I want to add a directive to my <input> elements with type="number" which converts persian digits to ...
0
votes
0answers
29 views

ng-repeat & orderBy about complex JSON file

Yo everyone ! I've got a little prob to "orderBy" my table. So, my .json file : var data = { "datas": [ { "value1":"value", "value2":2, "value3": [ { ...
0
votes
0answers
10 views

angularjs, nested level json data with children causing dropdown to be incomplete/wiredup

I need to show nested levels in my dropdown, means there are customer groups which contain multiple customers. So all these customers should appear below the specific customer group. In my Json all ...
0
votes
2answers
18 views

Ionic navbar buttons - right side

Im starting to use Ionic for the first time. Currently I have a listview and the backbutton appears when moving into the list. <ion-nav-bar class="bar-stable nav-title-slide-ios7"> ...
0
votes
1answer
90 views

why i am getting undefined is not a function?

I am trying to make popover using angular UI pop over .I load my html and complile that HTml but when I run my program and click ICon (star icon where I am showing pop over ) I am getting error ...
0
votes
1answer
10 views

Resolve template in AngularJS similar to Handlebars?

How to resolve an AngularJS template with a syntax similar to Handlebar? <script type="text/ng-template" id="mytemplate"> Name is {{name}} </script> I can get the template using ...
-2
votes
1answer
37 views

How to uncheck a checkBox but stop any event from getting fired?

I have a onclick function attached to check Box (which selectes or Unselects all dependent checkBoxes),I am using AngularJs. So For a checkBox say X ,there are more dependant chekcboxes say A ,B ,C. ...
0
votes
1answer
31 views

AngularJS with velocity

How to get the value of an html element using his id, withoud using ng-model I try to get data to my page with velocity and i set this value to textarea, i take possiblity to user to modify the ...
0
votes
1answer
30 views

get selected checkbox value in array

I have created an applicaion in angular for getting all the checkbox value which is checked into an array, without any looping, but after simultaneous checking and un-checking i am getting wrong data ...
0
votes
2answers
30 views

how do I pass an argument as a method

I am trying to make a function that takes $scope and appends it with the method 'telegraph'. the problem is, $scope takes the method "tag" without replacing it with the argument. So instead of reading ...
1
vote
1answer
16 views

Angular-ui-router different templates based on params

I have one state in my ui-router config: state("objects", url: "/:type/" ) And I need render different templates based on :type params. For example, when user trying access /buy, I need render ...
0
votes
1answer
21 views

Angular - routing why do I getting my controller 2 times called

I am using routing in angular app. while the page loads, I am getting the controller function triggers 2 times.. How to avoid that or is it have any useful meaning to call 2 times? any one help me ...
0
votes
2answers
22 views

Calling $setViewValue in a directive doesn't fire $watch in the controller

I am using a directive with a ngModelController like this var directive = { link: link, restrict: 'E', require: '?ngModel' } My link function does something like this (I omitted the ...
-1
votes
1answer
18 views

why it is generating load same html while using edit option?

I am trying to edit name of row.I am generating a row using add button .There is two option in row edit and delete .they work properly but when I give these option on icon click they are not working. ...
-1
votes
0answers
12 views

AngularJS Nested routing .config with stateProvider

I am new to AngularJS. Currently using ionic framework with AngularJS to build hybird app on android. I read quite a lot of info on the URL routing and parameter. However, the solution is does not ...
-1
votes
0answers
55 views

angularjs..How to make changes in api calls

Hi I am a newbie in angularjs. I am currently trying to figure out how to make api calls work properly in angularjs but am getting stuck in it at a point. Now in the below code I am getting data ...
0
votes
1answer
16 views

karma test runner not running any tests

I'm using karma with jasmine and followed online guide by installing using npm install --save-dev karma and other necessities i ran ./node_modules/karma/bin/karma start and karma start ...
-1
votes
1answer
13 views

Should I write unit-tests for 'wrapper' methods

I have function in controller of my directive: $scope.getPossibleWin = function() { return betslipService.getPossibleWin() } betslipService injected into controller Now I'm thinking how to ...
-3
votes
3answers
25 views

AngularJS : Custom Filter function not triggering

I have a controller app.controller('cartCtrl', function($scope) { $scope.$on('updateCart', function(event, cart) { $scope.cart = cart; }); $scope.myFilter = function(item) { ...
0
votes
2answers
30 views

Reduce method on an array – how does it work?

I found this AngularJS code and I don't understand how the sum-function works: What is reduce for? How is the parameter toral set or saved? Why is there a '0' at the end? JavaScript ...
-1
votes
1answer
30 views

how to validate element is angular js?

I make a view from json object. I am able to make take now I need to valid element on keyup event and blur event. So I googled it and find this tutorial ...
-1
votes
0answers
14 views

location.replace alternative for angularjs

JavaScript's location.replace can be useful when we don't want the URL to be stored in the browser history so that we hit browser back button it takes us to the page even before it. Like below Page 1 ...
-1
votes
0answers
17 views

AngularJs execute a function after view render

I am new in Angularjs, I am try to write a function,that can automatically run after ng-repeat render complete. this is a function I found online angular('myController',['myDirective']).controller([ ...
-1
votes
0answers
19 views

Angular ng-disabled hang up the whole UI

I am build a input range which I want to disable it after there are changes until next mouse down. Which mean I want to create a input range that will change only once for every one mouse down. ...
0
votes
0answers
26 views

stringify and parse usina a directive

i am writing a directive to stringyfy and parse the ng-model.....i want to display the model as an array and bind it as a string.... this is my directive : app.directive("stringifyAndParseArray", ...
-1
votes
0answers
22 views

HTML custom gauge Angular JS

I am trying to design the custom gauge. I tried try to use the map html and plotted each and every sector. I wanted to place a custom gauge needle to animate on ng-mouseenter. Trying to place the ...
0
votes
1answer
20 views

Change another directive angularjs

I have two directives to format text of elements. app.directive("kilometersText", function(){ // writes number as kilometer }) app.directive("metersText", function(){ // writes number ...