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
6 views
url fragment issue with angularjs router and jquerys sizzle
I hope this questions hasn't been asked before, but I couldn't find any help anywhere.
I am working on an AngularJS app with jQuery included. There seems to be a problem with the fragment of the url ...
0
votes
0answers
9 views
Naming AngularJS ngModel
i have a question. Can you use "-" in the name of models
$scope['general-text'] = "haha";
ng-model="general-text"
this currently doesn't work. any suggestion?
0
votes
0answers
4 views
Set data- attributes on <option> elements in Angular.js
I need dropdown selector with lots of metadata displayed, so classic <select> is not enough for me. jQuery plugin select2 to the rescue. To render custom markup by this plugin you need setup ...
0
votes
0answers
8 views
Extend rootScope with alert service?
I can easily envision myself injecting my alert service into almost every one of my controllers:
myApp.factory('AlertsList', function () {
return [{ type: 'info', msg: 'Welcome!'},
...
0
votes
0answers
7 views
Detect alteration of AngularFireCollection with AngularJS
Basically, I'm trying to use $watch with an angularFireCollection. It doesn't appear to be working however the way I want it to.
This is what I have at the moment:
$scope.bits = ...
0
votes
2answers
32 views
What does ExpressJS do that's not covered (better) in AngularJS?
What are the best use cases of ExpressJS?
ABC.html with views depending on user input, can be managed using Angular's 2 way binding.
We can create webserver using express, but there is no need when ...
1
vote
1answer
10 views
Page not rendered from Express POST route
I'm trying to display a page using a POST route, but so far no luck. The route is called from an Angular controller. The POST route is called properly - I get this in the node console POST /search 200 ...
0
votes
2answers
7 views
How to expand bootstrap accordion in Angular directive?
In my Angular directive I try to hide and show accordion panels. The problem is, when I access the accordion by code, the accordion breaks.
For example, when I do this:
...
1
vote
1answer
26 views
How to make angular wait for a function to return a value before proceeding
I have function like this:
$scope.process = function(){
$http().success(){
return something;
}
};
Just assume that the code is complete.. and then when I call it
...
0
votes
0answers
17 views
AngularJS - PUT method not working (404 error)
I'm new to AngularJS and I have trouble to update an object via REST. I'm using a PHP/Mysql Backend (Slim Framework).
I'm able to retrieve (GET), create (POST) a new object but not to edit (PUT) one. ...
0
votes
0answers
13 views
ng-repeat model.array[0].otherArray
This questions is in relation to another question of mine; angularjs-multi-level-tables-inside-another-if-clicked. (You can see "full" JSON there.)
Why can't I have an ng-repeat like below?
...
0
votes
1answer
24 views
$resource on $save() throws TypeError: Object #<g> has no method 'push'
Resource factory:
.factory('WorkerRepository', function($resource){
return $resource('workers/:id', {id:'@id'});
})
Controller:
.controller('ListController', function($scope, ...
1
vote
0answers
23 views
Angular js set ng-model within template
I'm trying to make my search fields generate automatically, based on config file.
I wat to make one template for tag and to set its attrs inside the template (from $scope, of course). So template ...
0
votes
0answers
14 views
Is there a way I can save rows in a grid that I made a change to with AngularJS?
I used ng-resource to get data from my server and then place the data into a table grid like this:
<div ng-form name="grid">
<button type="submit" ...
0
votes
1answer
9 views
Can I give an ng-form a name that I can check with $pristine?
I looked at the documentation for ng-form:
http://docs.angularjs.org/api/ng.directive:ngForm
But it gives me almost no examples and I am still very confused. What I would like to do is to have a ...