Tagged Questions
AngularJS is an open-source JavaScript framework. Its goal is to augment browser-based applications with Model–View–Controller (MVC) capability, reduce the amount of JavaScript needed to make web applications functional. These type of apps are also known as Single-Page Applications.
0
votes
0answers
4 views
How to navigate to a child state using paramters from a factory using Angular.js and ui-router?
I'm trying to get angular ui-router to navigate to a child state using a parameter supplied by a factory which has a default parameter at the start in order to preserve the parameters across the app.
...
0
votes
0answers
3 views
Fabricjs object:selected, object not selected
Using fabricjs I am working with a text object that I have named header. When the header area is selected a div is faded in with two input fields that can be used to set text and fill. This is working ...
0
votes
0answers
6 views
AngularJS $routeChangeStart only first time event
Is there a way to only listen for the VERY first route start and none of the others? Obvs this could be done with a variable but was wondering if there was an event for this instead.
...
0
votes
1answer
5 views
PhoneGap 3.x / iOs6 iOs7 / AngularJs - Plugin objects aren't available with custom www/index.html location
How do I gain access to the javascript plugin objects and use a custom www/index.html location?
When I add this line into project_name/www/config.xml:
<content src="app/index.html" />
I am ...
0
votes
0answers
14 views
AngularJS nesting elements with multidimensional arrays and displaying them with a click
Here is the fiddle that accurately displays information but is visually not correctly positioned.
http://jsfiddle.net/LhRfq/
My scope is a three dimensional json object.
The first level array items ...
0
votes
0answers
6 views
Content-Type cannot be set in $resource. Get Unsupported Media Type error
I'm using angular and angular-resource version 1.1.5 and I'm using a $resource to make a PUT request to a REST service. I set the request header Content-Type as application/json. But it shows ...
0
votes
0answers
24 views
Applying filters in AngularJS
I have a table which should show a resultset, filtering the result against the value of a user input:
<input type="search" ng-model="search">
<table>
<tr ng-repeat="person in ...
0
votes
1answer
13 views
Base Href and Angular Routing and Views
I'm developing a web application which defines the <base href="phoenix/"> in the header as explained in this article.
The default URL that is mapped is http://localhost/phoenix/ however even ...
0
votes
1answer
6 views
Karma error Cannot call method 'module' of undefined
I am getting this error when running test.sh. (I think I got test.sh from the aungular-seed project)
INFO [Chrome 26.0.1410 (Linux)]: Connected on socket gB-olqxn3xDa6fV2ENBw
Chrome 26.0.1410 ...
0
votes
0answers
17 views
Angular: How to map class names to boolean values in ng-classes when the list gets long?
I was really inspired by Olivers Tupmans blog on keeping classes out of the Angular controller. However the syntax required to do this as suggested https://coderwall.com/p/r3_geg
ng-class="{true: ...
0
votes
0answers
5 views
Getting all events for all calendars with Google API Javascript Client
I'm trying to get all of a user's events, for all of their calendars on Google Calendar. I'm doing this by first making the call to gapi.client.calendar.calendarList.list, and then using the IDs ...
0
votes
1answer
11 views
AngularJS http sending post request fails
Having this GET request, it works (sends request to the sever and server is able to handle it):
/* post to server*/
$http.get("/forms/FormValidator1/validateForm/" + JSON.stringify(data)).
...
0
votes
1answer
9 views
Call service on injected module
I have a main module and some submodules. I am injecting the submodules in the mainmodule. Now I want to access a service of the `submodule - how do I do that?
var myApp = angular.module('myApp', [
...
0
votes
2answers
24 views
linking promises, or one promise triggers another
I'm building a weather app where I first have to get the users location, then make the request to get the weather.
So I have a GeolocationService and a WeatherService. My WeatherService is currently ...
0
votes
0answers
19 views
AngularJS - dynamic error message on validation via directive
I need some help. I'm doing some validation on an input element and would like to set a dynamic error message in javascript. I am aware of the following way to do this, but my situation has become ...