0
votes
0answers
6 views

How to submit a straightforward form using Angular

Using angular, I want to submit a form and store the response. My code looks something like this: <form ng-controller="myController" action="myAction" method="POST"> <input type="text" ...
0
votes
2answers
20 views

Object doesn't support this property or method undefined in IE8 on call to indexOf defined array

I have a site built in AngularJS that has been working brilliantly. Unfortunately, our client requires the use of IE8. Everything seems to work fine in the site on IE8, except for the fact that I'm ...
-1
votes
2answers
29 views

Prevent {{image.url}} 404

Working on a simple Angular app, where part of the functionality includes grabbing a set of images from a remote server. I'm then using ng-repeat to render these, but am getting a 404 on the initial ...
2
votes
2answers
22 views

Why does AngularJS break self-referencing anchor links?

If you're at a location like this... http://www.domain.com/index.html ... and you have a link that points to the same location... <a href="/index.html">My Link</a> ... then clicking ...
0
votes
0answers
14 views

AngularJS dropdown out of sync in IE

I have a problem that only happens in IE. There are a couple dropdown boxes on my form that are populated via WebAPI. That works. But when I click the dropdown arrow and select an item, the first item ...
0
votes
0answers
16 views

How can I retrieve only visible field values in Angularjs? Hidden/Removed fields persist in scope

If I hide (ngHide/ngShow) or remove (ngIf, filter) a data-bound form field, the value persists in the model. This is useful if the field is later shown/added because it keeps the value, however I ...
0
votes
2answers
23 views

Angular.js watch array property

The problem is clearly visible here http://plnkr.co/edit/ZphAKvZeoVtuGFSEmOKg?p=preview Let's say you have an array that looks like this [ foo: 'bar', { a: '123', b: '654', }, { a: ...
0
votes
0answers
9 views

Google Sign In not recognizing sign in Callback function in Angular

I am building a small Angular app and I am using Google Sign-In. I am just using the sample code from the tutorial Google gives. <span class="g-signin" ...
1
vote
2answers
31 views

Angular - Correct way to modify DOM elements in a Directive?

I have a directive, powerEntry, with varying CSS classes I'd like to add/remove based on model state. Currently, I have a link function, with some logic like this: Script.JS if ...
0
votes
1answer
15 views

Accessing Angular inside Protractor Test

Is it possible to access angular within your protractor tests like you do in unit testing? Use case is that I have a service that transforms text and I want to access that service to transform some ...
0
votes
2answers
33 views

Unknown number of sublists with AngularJS

I'm working on building a tool to help users navigate our website. The AngularJS function receives a JSON object from another service and then prints out an html5 list. The html should look like ...
0
votes
2answers
32 views

Stop Angular JS ng-view from wiping the page out

Okay, I need to be able to stop ng-view from wiping the content away, I need to have the ng-view there since it's the only place it goes where it doesn't (and can't) nuke the whole application. I ...
-4
votes
1answer
48 views

Jquery in AngularJs

I have a Jquery function but I need to apply it on a website that is working with AngularJs What are the steps I should follow to make this function work in Jquery website. What should I do or what ...
0
votes
1answer
27 views

Javascript in Visual studio Web Api

I have a javascript function embeded in my html code but when i'm running the page i get this error: Uncaught ReferenceError: myFunction is not defined. I'm also using angularjs, so i have my index ...
0
votes
2answers
35 views

Asynchronous API Request by Angularjs

I have two files foo.js and foo.html. In foo.js i take information from a API (i suppose its asynchronous) and foo.html has access to that object. <tr data-ng-repeat="y in vm.apidata"> ...
4
votes
2answers
41 views

jQuery plugin and angular repeat

Given a jQuery plugin, what is the cleanest way to initialise it on a list of elements rendered by ng-repeat? For example, i want to make a list of words draggable. In the controller i take the list ...
0
votes
1answer
18 views

Loading huge list of files in angular.js app for development env

In our Angular.js app we're having individual files for every controller, directive, service etc. So there are hundreds of js files to include. We're using Grunt to concat and uglify javascript for ...
0
votes
0answers
43 views

Angular - Multiple calls to $http. How to manage?

I'm trying to make a call through $http for each element in an array. Which leaves me very unsatisfied as this array can be quite large, so the performance may not be very good. This is my code: ...
-2
votes
1answer
28 views

Angular ng-repeat rating images

I have two pngs, one with an empty star one with a full star. Depending on the ratings from 1-5 I want to add or remove more star images. Here is my code that doesn't work: <div> ...
0
votes
1answer
28 views

AngularJS - Check my implementation of resource factory

Just starting out on AngularJS & js (being a backend developer) and this is the first Javascript MVC framework which I have ever worked on so please go easy... I have a restful json API which I ...
1
vote
1answer
20 views

How come my html-node keeps the class ng-hide the attribute ng-show=true?

I have a radio input that looks like this: <input name='{{inputName}}' type='radio' value='{{label}}' ng-model='key' id='{{name}}'> The label is Press and the key is entry.182494741. If I ...
-3
votes
2answers
43 views

How the open source Javascripts like AngularJS runs on client browser? [on hold]

I am a newbie in web development. In my understanding, for static web content, we can use HTML and Javascript (for validation and some client side processing) and ASP.NET/JSP/PHP technologies are for ...
0
votes
2answers
50 views

Select Tag Options won't work with ng-repeat

I need to use ng-repeat with the options within a Select menu like so <select name="category" id="category" ng-model="rumor.category" validation-pattern="requiredOnly" error-icon> <option ...
5
votes
3answers
35 views

Data from directive not displaying within ng-repeat

I have broken this problem down into it's simplest form. Basically I have a directive that, for the demo, doesn't yet really do anything. I have a div with the directive as an attribute. The values ...
0
votes
0answers
24 views

Inability to edit angular model-data in input [on hold]

I'm new in angular and I have a problem. I can not edit model-data in inputs. This is my input: <input type="text" ng-model="currentMedCenter.name"/> This is my controller: function ...
0
votes
2answers
39 views

Any courses that show how to use the MEAN stack or B-MEAN?

I have researched multiple times on the internet for resources on the MEAN stack and building web apps utilising the MEAN or B-MEAN. Although I do understand the fundamentals within each of these ...
0
votes
1answer
31 views

Object #<s> has no method 'apply' Angular Reload

I am trying to eradicate the case of calling an additional function to see changes occur. I have the following: <div class="span6"> <textarea class="textarea" ...
1
vote
1answer
28 views

Set ng-model to a be named the same as variable rather than referencing that variable?

I have an dierective that looks like this: .directive('gdInputField', function() { return { //will only work for elements, not attributes. restrict: 'E', template: ...
0
votes
2answers
60 views

AngularJS, promise with recursive function

I'm trying to use the AngularJS promise/then with a recursive function. But the then-function is not called (none of the error-, success-, notify-callbacks gets called). Here is my code: recursive ...
0
votes
2answers
31 views

Same view multiple controllers in Angular

I am using ng-table directive to show tables with data. My current view utilising the table is : <table ng-table="table_params" show-filter="true" ng-controller="table"> ... </table> I ...
1
vote
1answer
22 views

angularjs: access controller of directive

I'm unit testing one of my directives. Its basic structure is like this angular.module('MyApp') .directive('barFoo', function () { return { restrict: 'E', scope: {}, ...
2
votes
1answer
31 views

Angular JS $location.path(…) not firing route controller

So I'm trying to update the path on form submit using $location.path('/search'); But it isn't triggering the route registered to '/search' I've tried with a trailing slash too. Nothing, I've also ...
0
votes
1answer
13 views

AngularFire 0.5 $remove. Error: Firebase.child failed: First argument was an invalid path

new to angular here and I have a ng-repeat list with ng-click="remove(item)" button that triggers a remove function: $scope.remove = function (item) { console.log(item); ...
2
votes
0answers
52 views

MEAN Stack course/tutorial Node.js

I have been seeking for an online course, tutorial, or book which teaches you how to fully utilise the MEAN stack. Implementation during every step when making an online application. Is there any ...
1
vote
0answers
24 views

Unknown Provider e-provider error while using angularjs an ruby on rails

I have a Rails/AngularJS app which works fine in local development environment. However, when I deploy this app to Amazon Cloud the AngularJS doesn't work an returns this error: Unknown provider: ...
2
votes
1answer
49 views

Similarities and differences of Node.js and Angular.js [on hold]

I am new to MVC (Model View Controller) and knows intermediate OOP in javascript. Do Node.js and Angular.js has the same purpose? Example, i wanted to create an attendance monitoring system. Where ...
0
votes
0answers
31 views

angularjs how to find img element height and width

Hi I'm trying to find an image element's height and width in order to resize it. However everytime I use elem.height() or elem.width() I get 0? html <div> <img ...
0
votes
1answer
20 views

How to load JSON file from S3 using Angular $http.jsonp

I am loading JSON file from S3. File is loading successfully but problem is, I cannot access AnglarJS modules($scope, services and etc) in my callback function because it is written outside angularJS. ...
0
votes
1answer
27 views

Angular function with delay

Hi want to perform the applyParameters function after a 5 second delay. However my current syntax isn't doing it. Any idea about how to do this? //Add and update categories var ...
0
votes
2answers
20 views

Read url requested in Angular app

When a page loads, I want to determine what url was used to load that page and intercept it in the controller so I can extract the parameters from it. For example if ...
2
votes
2answers
59 views

How to write multiline javascript code to file with node?

I generate some jS code on the front end and i want to write it to a js file by making an api call to a node server and i'm having some trouble with 1) ensuring the code isnt written to file as a ...
0
votes
2answers
39 views

AngularJS ngRepeat update model

I use ng-repeat to render a html table. My controller looks like so: app.controller("fooCtrl", function($scope, WebSocket) { $scope.foo = [ ... ]; WebSocket.start(function(data) { // this is ...
0
votes
0answers
33 views

AngularJS tutorial step 5; list doesn't appear [on hold]

please be patient as I'm new to all this... I'm taking the AngularJS tutorial. I downloaded all the necessary files and diffs to my PC as I went along using the matching GitHub project. I worked ...
0
votes
2answers
26 views

How can I add template piece to directive in angular.js after element

F.e. for html element I can do $.after(), and I want to do something like for directive. Now I have code html <input ng-model="job.position" ng-class="{inputError: job.errors.position}" ...
-1
votes
1answer
28 views

Update textarea with a value from a selectbox

In AngularJS, how do I to set value from a select to a textarea field when a user selects. <div class="controls" ng-controller = "TemplateCtrl"> <select ng-model = "template" ...
0
votes
2answers
34 views

mark search string dynamically using angular.js

How can I mark my search pattern dynamically in my html? Example: I'm using angular and my html looks like this: <div> <input type="text" ng-model="viewmodel.searchString"/> ...
0
votes
1answer
23 views

Load external page inside ng-view with AngularJs in an SPA application

Is there a way of insert an external web page inside angularjs ng-view. For example when I press a link with ng-route in my example I want that a external page load inside my own web page. In this ...
1
vote
2answers
40 views

JavaSciprt Promises and Function Return Differences

What is the difference between the following two functions as far as promises are concerned? var service = { someFunction: function() { return $http.get('url').then(function (response) { ...
0
votes
0answers
24 views

Using foundation's dropdowns within angular ng-repeat

I want to display a dropdown within a table shown using ng-repeat. The dropdown is built using Foundation's dropdown.js stuff. <tr ng-repeat="lead in leads | filter:filterText> <td> ...
0
votes
0answers
40 views

Trigger NgChecked in Angular JS

I need to work out a way of triggering NgChecked to re-evaluate it's expression after a user submits a form (which reloads the data). Ideally the trigged would be after the data has been reloaded, so ...

15 30 50 per page