0
votes
0answers
9 views

Placing limit on API calls based on DOM

I'm trying to limit the number of API calls I am making if I already have enough elements on the DOM. But it seems in between the promises and the actual insertion, my check isn't being triggered in ...
1
vote
0answers
7 views

Pattern for sharing a library between angularjs and node.js

How can I share a library between angularjs and node.js? For example an angularjs service is often a reusable piece of code. Let's take a URL library as an example (pick apart and construct URLs). ...
0
votes
1answer
17 views

Localizing routes in Angular

I am trying to create an Angular app in multiple languages but I have come across and issue with the routing. I found a workaround to make the necessary routes valid for 2 languages : var app = ...
0
votes
1answer
17 views

AngularJS adding inputs that represent an array model

Simple AngularJS questions that I can't get my head around. Plunkr: http://plnkr.co/edit/OjaooVOQBEETkhaZFbWG?p=preview HTML; <div ng-repeat="label in likedLabels"> <input ...
0
votes
0answers
13 views

AngularJS select ng-change function not finding selected model

I'm having trouble with some basic angular databinding. my view: <select ng-model="selectedPerson" ng-options="person.name for person in testdataset" ...
0
votes
0answers
10 views

Custom data response in responseError interceptor

I am trying to return custom response when 500 err response occurs. i am handling this in the resource/service so controller doesnt have to worry about it. Following the docs, i created interceptor ...
2
votes
1answer
42 views

Graceful improvement (not degration) with Angular.js? [on hold]

We're relaunching the landing page of our company (contains an info, jobs, team and help section) and decided we'll no longer maintain a Rails project only for this part of our service and therefore ...
0
votes
0answers
14 views

Angularjs URL Forward bumps to bottom of page

I'm trying to forward to a new url once a form submission completes. Everything works fine, and the forwarding works with the code i'm using, however the view of the window bumps to the bottom of the ...
0
votes
2answers
13 views

How to use ng-disabled with jade templates

Now I work with nodejs and investigate angularjs for fun) But I have some problem I want to add file upload for my blog project and i did it) So I want show upload button only if user select some ...
1
vote
1answer
19 views

AngularJS issue when accessing index.html directly

I've been dealing with a problem in my angularJS app that is messing with the routes depending in how i access the app. For example, if I access directly to my server through the url : ...
-1
votes
1answer
45 views

No 'Access-Control-Allow-Origin' with Angularjs

Cannot figure out how to get around cross domain issue. My code: $apiUrl = 'https://gtmetrix.com/api/0.1/test'; $apiUser = '[email protected]'; $apiKey = '1234567890'; $requestUrl = ...
1
vote
1answer
27 views

$digest() called ten times when using custom filters

I have the following angular markup: <tr ng-repeat="dia in dias"> <td>{{ dia[0].fecha }}</td> <td ng-repeat="bloque in bloques"> <div ng-repeat="hora in ...
1
vote
1answer
26 views

AngularJS clientside validation: Changing validation requirements depending on other fields?

I want to validate my fields using AngularJS's own form validation. However, I only want to check some of the fields when other fields have data. E.g. <form novalidate name="myForm" ...
0
votes
0answers
28 views

How to implement modal inside another modal in angular-strap?

I'm using angular-strp for modal box. My requirement is i want to show the information about the page when page loads in the modal box. When user click ok on the modal box I need to close that modal ...
0
votes
2answers
22 views

can't submit a form on express/angular app

in my program there's a validation function on it, if there's an error it will prevent the form to submit and display error msg else it will console.log("Success") but my form cannot be submitted even ...
1
vote
1answer
27 views

AngularJS: Understanding design pattern

AngularJS: Shared publicly - Jul 19, 2012 MVC vs MVVM vs MVP. What a controversial topic that many developers can spend hours and hours debating and arguing about. For several years ...
0
votes
1answer
41 views

Undefined values in directive Angularjs

I am trying to create a directive with data who comes from ajax call, my problem is the data is undefined when the directive is created because ajax is still loading, I know with a setTimeout to ...
0
votes
0answers
41 views

How to make non-angular event working when using angular

I'm new with angular and i use it in one of my projects. Also, i'm including non-angular js code which has following lines: document.querySelector(".skip-btn").onclick = function() { ...
0
votes
1answer
18 views

How to fix “There is no server listening on port 9876” error while running karma?

I am a newbie to karma .while i running the following PS D:\app> karma run it shows the error [2013-11-29 17:39:54.297] [DEBUG] config - Loading config D:\app\karma.conf.js There is no server ...
2
votes
1answer
35 views

Angular filter return html

I want to use unsafe-html in angularjs 1.2. Whereas the filter without html does work, with html it does not. What I do: I added angular-sanitize to my html head: <script ...
0
votes
0answers
28 views

Difference between using “this.$scope.x” and “this.x” with ngControllers? [duplicate]

Edit: While the other question & and answer is sufficient, I still don't understand why/how functions added to function's prototype inherit the scope. According to the other answer they shouldn't ...
0
votes
1answer
25 views

How to find a view loaded completely in Angular Js

I am wondering if there is a way for Angular JS to identify the view has loaded completely. I need to call a function on route change . I tried it with $routeChangeSuccess. But the function is called ...
1
vote
1answer
44 views

Angularjs Hide the text inside input field

I(fairly new to angular) am working on angularjs terminal emulator, Here's the plunk http://plnkr.co/edit/BzLc9WGakUcRX5Cn2LpE?p=preview What I want is that text inside input field should not be ...
0
votes
0answers
33 views

Where to keep empty model in AngularJS

I have a array of similar objects with quite complicated structure and i need to add same empty object to this list. What best way to keep or create empty objects? And it would be great if it ...
0
votes
1answer
11 views

Angularjs ng-grid change page but lose selectedItems

I am new to AngularJS and I started integrating with ng-grid. According to official site http://angular-ui.github.io/ng-grid/, there's a property "selectedItems" that you can set your list of selected ...
0
votes
0answers
13 views

Breeze and ng-animate

Is it possible to use breeze with ng-animate? I can't find an example on the net. Just executing a query and applying data doesn't seem to work.
0
votes
0answers
14 views

Empty optgroup with angularjs

On my web page I want to create a drop-down with separators like this: <select> <option>Item 1</option> <optgroup label="---"></optgroup> <option>Item ...
-1
votes
1answer
23 views

AngularJS scope defined function is null

I have a function defined in my controller that get's bound to an a element with ng-click, the li element in which the a element is nested also has an ng-repeat directive. When I inspect the $scope ...
1
vote
1answer
38 views

Angular.js - updating parent scope from directive

I'm trying to update a dict of values in a parent scope from a directive. The dict parent is updated through a function (explained here) so i dont really understand why when i print values i see them ...
3
votes
2answers
31 views

How to turn off form validation in Angular when clicking by button that shoulden't send form

I have a form like this one: <form name="myForm"> <input id="myName" ng-model="myName" required/> ... <button ng-click="doSomePrepare()">Do some prepare</button> ...
-2
votes
0answers
22 views

Why don't use the template element replace the script for angular template wrapper [on hold]

At first, the template is an html5 element and can be very easy created for older browsers. Most IDE support the hight light,fast commander for template. The script element means an script language. ...
0
votes
3answers
60 views

ENTER key not working properly

while i am pressing enter key its calls function which automatically refreshing the page. the function i wrote for cancel button <form name="myForm"> <div > <input ...
0
votes
0answers
20 views

When angular form load in lightbox, dropdownlist didn't load in even click event which are in angular form

I have angular form and which is load in lightbox when click the button which is in index page. My qusetion is when i click the button form is load in lightbox, but the thing is dropdown data didn't ...
0
votes
1answer
32 views

AngularJS - submit form with checkboxes via ajax

I have a form with checkboxes and other input fields. The data-ns-form directive is used for submitting form data via ajax. The controller for this form is UserController. HTML <div ...
1
vote
1answer
25 views

.length not working on $resource result in angularjs

I am getting my $resource getAll() as [$promise: Object, $resolved: false] 0: Resource 1: Resource $promise: Object $resolved: true length: 2 __proto__: Array[0] and I am using a service to save ...
2
votes
1answer
35 views

Is using ng-init for bind once valid in angular js?

i have a collection of values whose structure lets assume to be var a = [{id:1, value:12, name="one"}, {id:2, value:34, name="two"},...] i wanted to display this in a series of controls so that ...
0
votes
2answers
36 views

How does AngularJS return a value from async call?

Watch this video, https://www.youtube.com/watch?v=IRelx4-ISbs You'll find that the code has a line wrote this: $scope.twitterResult = $scope.twitter.get({q:$scope.searchTerm}); This is a litter ...
0
votes
1answer
23 views

toggle in ng-repeat-start and ng-repeat-end in AngularJS

I have two objects. $scope.OBJ1=[ {"primaryKey":1,"value":"something1"}, {"primaryKey":2,"value":"something2"}, {"primaryKey":3,"value":"something3"}, ...
1
vote
1answer
17 views

How do I call a js plugin from within a directives link method - Angularjs

I am trying to wrap Bootstrap 3's modal in a Angular directive. I get into the link function, but I am not able to call the Bootstrap .modal() function. Here is my html: <h1>This is a ...
1
vote
3answers
36 views

How to get rid of default value on a dependent select?

I'm working on a pair of combos whose content is mutually related. HTML <span>{{lblRegion}}</span> <select ng-model="currentRegion" ng-options="region.name for region in ...
0
votes
0answers
12 views

Dismissing Bootbox Modal on mouse click

I am incorporating Bootbox Modal windows into my project and have a question about the functionality. Is there a way to dismiss the window when the user clicks off of the window (loses focus)? I ...
0
votes
0answers
16 views

angularjs ng grid initialization and change event

I'm using several ng grids that I initialize with data from the server when the page loads. Initialization includes selection of some rows according to the data coming from the server. After ...
0
votes
2answers
51 views

How do I access ng-model values inside my directive template?

I have a directive with a template that looks like <!-- selectList.tpl.html --> <div ng-if="selectList"> <p>Id: {{$id}}</p> <p>Current list item ...
0
votes
1answer
30 views

Target element within scope using ng-click

Is there a simple way to target an element within a scope and change the class name or styling. I used to use Jquery and simply use .parent().find to target relative elements, but can't find a simple ...
0
votes
0answers
31 views

Inserting an embedded document into MongoDB with angularJs

When trying to insert an embedded document, what should the angular view look like? This is my model in node: var ArticleSchema = new Schema({ /*other fields that aren't relavent here */ ...
0
votes
1answer
53 views

AngularJS service with Java (REST)?

I generated a simple java REST service with netbeans and it is working and now I need to make a AngularJS controller and service to get some data (nothing special). I never used angularjs before and I ...
0
votes
1answer
22 views

ng-class is not applied

I am trying to validate a form using AngularJS. This is my form: <form ng-controller="LoginCtrl" role="form" class="form-horizontal"> <div class="form-group"> <label ...
1
vote
1answer
39 views

ng-repeat 'track by $index' behaviour on element removal

I am building an app which features a kind of "playlist". This is represented an ng-repeated custom directive with ng-repeat = "element in playlist" Because I want to allow a user to re-use the same ...
0
votes
1answer
32 views

Angularjs - bind value from directive to ng-show/hide anywhere in document

Firstly,,, I am looking for a solution better/more secure then this one,, but for now this is what works best considering my needs... Now to the point.. I have a directive I use to authenticate a ...
0
votes
0answers
16 views

Uploading images in a parent form with ng-upload

I am trying to use use ng-upload inside my existing form. It needs to be put there to be shown in between the other elements. However, nesting forms like this does appearantly not work. Here's an ...

15 30 50 per page