0
votes
0answers
11 views
Using filters inside a ternary operator in AngularJS
Is there a method for applying a filter to a variable in the template when it is part of a ternary operation?
<img ng-src="{{ image_url && image_url|filter:"foo" || other_url }}">
In ...
1
vote
1answer
13 views
Create List input checked array for posting REST API
I've used .push() to create "List" input checked array for posting REST API. But it doesn't seem right.
When unchecking, the item in array is not removed automatically. Anybody have a better ...
0
votes
1answer
18 views
destination.push is not a function ngResource save() AngularJS
ngResource save() to a mailer API using $resource can be demonstrated here:
http://plnkr.co/edit/EakLFygH0QGr5zJ9xqZr
The message sends, however I am getting an error in my console log:
...
0
votes
0answers
10 views
Passing multiple ids via route in angular JS
I have to pass multiple ids to a service via route. Right now the route works for a single id, but as a beginner to angular JS, I don't know how to pass multiple ids or
is there a way where I can ...
0
votes
2answers
12 views
Advanced AngularJS custom filtering on ngRepeat objects
I want to achieve the following theoretical code:
VIEW.html
<li ng-repeat="player in players | filter:myCustomFilter(player)">{{player.name}}
CONTROLLER.js
// some theoretical conditional ...
0
votes
1answer
14 views
issues performing two-way binding in directive template with parser and formatter in AngularJS
I'm having trouble figuring out how to create a two-way binding with an element inside a template for a directive in AngularJS.
My example:
HTML
<div ng-app="App">
<div ...
0
votes
2answers
23 views
Working with Angular Services and JavaScript Classes (accessing services within Class, or reworking class to be within Angular framework)
I guess this is a 2 part question; but I'll start by explaining the problem I'm having.
I have an Angular project, and 3 classes, which are not 'part' of the Angular framework. The first question - ...
0
votes
0answers
22 views
Custom ngRepeat
I'm trying to create a custom AngularJS repeat directive, because ngRepeat doesn't fit my needs in this particular case, where I'm creating a sort of templating language based on angular directives, ...
0
votes
1answer
19 views
How do I trigger a angularjs page refresh in a global callback function?
I'm currently interacting with the google api, using jsonp, so I need a global callback function. How do I trigger an update of the page inside the callback function?
I've tried $timeout and ...
0
votes
1answer
36 views
How to implement jQuery range slider in AngularJS
I am trying to use anuglar-slider in my existing AngularJS app.
I followed the author's comments here
I downloaded below files (in Head tag) from author's github and added in my index.html
HTML ...
0
votes
1answer
21 views
AngularJS Error: Unknown provider
I'm getting the classic the classic Error: Unknown provider: UserModelProvider <- UserModel with angular JS. My code looks like this:
var ClabborApp = angular.module('clabbor', []);
...
1
vote
1answer
24 views
Strange behaviour when checking/unchecking all items in a list of checkboxes
In a list of checkboxes it should be possible to check/uncheck all items by pushing a button. But the following code only works partially:
<div ng-controller="Controller">
<button ...
2
votes
1answer
83 views
Is Meteor JS flexible to be full stack framework? [closed]
I've read some interesting articles and comparisons on JavaScript MV* frameworks and I do know outline of architecture of most popular ones (Ember, Backbone, Angular) However as a PHP programmer (and ...
0
votes
0answers
32 views
calling external api with AngularJS and ngResource
we are currently developing a little AngularJS project and starting from the frontend, so pure HTML and JavaScript.
However, we need to make some API calls using ngResource. At the moment we are ...
0
votes
1answer
33 views
Why is scope.$watch not triggered when a value is set via $parse assign in Angular?
I have two directives. One directive show a dropdown and the other directive must hide the dropdown when somewhere else on the page is clicked.
dropdown directive:
app.directive('dropdown', function ...