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
8 views
How to apply withCredentials inside factory ngResource?
I found that I could withCredentails: true to enable sending cookies with client requests.
My question is how do I do the same, but for resources from factory?
I have code looking like this:
...
0
votes
0answers
9 views
Saving the modified state of an AngularJS application to the URL
I've got a rather complex HTML form that users fill in and submit. On submit we redirect to a third party Web site, generating that redirect parameters depending on the form values. Then, if users ...
0
votes
0answers
9 views
Angularjs async callback return undefined under $scope.$apply();
This is my factory code. The callback is async so i put it under $rootScope.safeApply().
Then I call console.log(authService.authUser) in my controller but it still return undefined when user logged ...
1
vote
0answers
10 views
Loading scripts in Angular
I'm working on an angular app that is becoming quite large. At the moment I have several controllers, each controller is dependent upon different jquery plugins. Currently I'm loading all the scripts ...
0
votes
0answers
9 views
Valid fields object does not update after button click
I have a bunch of input fields I want to do custom validation on.
As the user types I run validation on that particular input using the keyup event from angular ui.
I have a valid_fields object ...
0
votes
0answers
8 views
How to set angularjs ng-controller in the rails form_for view
I am trying to use Angularjs in rails app using angularjs-rails gem . Here I am going to include form (directive in module ng ) in rails form view.
I dont know how to inset ng-controller="Ctrl" in ...
1
vote
1answer
12 views
angularjs losing two way binding
I have the following input that has two way binding to the model variable IsChecked.
When I change IsChecked in the controller, it changes on the UI html element tag and vice versa.
<input ...
0
votes
1answer
13 views
Angularjs directive remove watch?
I have a $scope.$watch declared in the controller of a directive. When I change pages and the directive is removed do I have to manually destroy the way? If so how do I detect when the directive has ...
0
votes
0answers
10 views
AngularJS Directive Two way binding in replacing element
I've got a talbe setup with a infinite list. In one of the cells I had a -dropdown that selected the value of the current rows data. This leads to some performance problems so I have been trying to ...
0
votes
1answer
12 views
“Forwarding” attributes to directive templates
Let's say I have a directive used like:
<div my-directive ng-disabled="moon.visible" />
Inside, it has a template like:
.directive('myDirective', function() {
return {
template: ...
0
votes
0answers
6 views
Angularjs ui typeahead to focus after select
You can even see the problem in the angular ui's demo.
http://angular-ui.github.io/bootstrap/
Typeahead once you select a suggested value loses focus on the input prevent you from submitting it. How ...
0
votes
1answer
20 views
Angular.js filter shows no results on empty input
I want to filter results from a subreddit. The following code works as intended but shows no results when the page is first loaded. When I hit space or write anything, it brings up the results. ...
0
votes
1answer
14 views
What is the right way to render list on edit/create page
I've started to learn Angular js and have a question.
I want to render incomes list on edit and create pages. What is the right way to do it?
I use rails as backend. Now I have 3 different templates ...
2
votes
1answer
19 views
How can I use Bootstrap Multiselect Dropdown in AngularJS
I want to use Bootstrap Multiselect Dropdown http://davidstutz.github.io/bootstrap-multiselect/ in AngularJS. I hear that it's necessary to move it to Directive. But I think it's quite complicated ...
0
votes
0answers
12 views
Can you use $index outside of ng-repeat?
Like so:
<div class="item" ng-repeat="priority in priorities" ng-class="{active: {{$index}} == {{routeParams.priorityId - 1}} }"></div>
<a class="carousel-control left" ...