Tagged Questions
AngularJS is an open-source JavaScript framework. Its goal is to augment browser-based applications with Model–View–Whatever(MV*) capability and reduce the amount of JavaScript needed to make web applications functional. These types of apps are also frequently known as Single-Page Applications.
0
votes
0answers
3 views
Angular/Rails app not making server calls
I'm trying to get my app's Angular front end to interact with Rails controllers - basically, I can't seem to get the database calls working. Here are my files:
app.js.erb
var app = ...
0
votes
0answers
13 views
Creating an angular directive for changing placeholder text for a form
This isn't a direct coding question per se...more like what is the best practice or the smartest way to go about something like this.
I have a form with a button that should change placeholder text ...
0
votes
2answers
14 views
Creating partials with a directive
I'm compiling a feed for my company's different blogs. The format is going to be identical for each feed with only different posts being loaded in, so I'd love to go DRY and use a partial.
We ...
0
votes
2answers
14 views
Angular Print Checked boxes to an area
I have a list of checkboxes... when any of them are checked I want them to print in the area where I use the {{}}... If it is not checked then I want there to be no visual sign that there is anything ...
0
votes
1answer
18 views
AngularJS: Can't resolve Error: [$parse:syntax]
I'm brand new at AngularJS, watching a Lynda.com video series on it, "Up and Running with AngularJS
with Ray Villalobos." I can't get past this error notice. I'm using WAMP to display an external Ajax ...
0
votes
1answer
12 views
AngularJS - passing variable to function returns preprocessed syntax
I want to send an AngularJS variable to a function in my controller. Here's a sample snippet of my code:
<ul>
<li ng-repeat="score in scores | filter:search | orderBy : 'first'">
...
0
votes
1answer
16 views
Angular update view after AJAX call
I'm having issues waiting for a callback from authService.login(). My view is being updated before the user is done being logged in. I'll walk us through the code.
Setting up Angular app:
var ...
0
votes
0answers
14 views
Set default radio/input/checkbox value in AngularJS tabbed view
I have an AngularJS app using Ionic Framework which has a tabbed view with a Settings tab which will store user options for use. I want to use these settings when the app initially launches and while ...
0
votes
0answers
4 views
Batarang on Chrome mobile devtools doesn't work
I'm debuggin a mobile application using Chrome devtools, I can inspect the device, network tab, console tab, etc are working fine, I can see the batarang tab AngularJS, when I click Enable the page is ...
0
votes
1answer
12 views
Angular Form Post
I have the following code and when I submit the request; I get request failed. The data is not going to the server. Any idea why?
All I need is a simple form submission with the code below. I think ...
0
votes
0answers
12 views
Advantages of the html5Mode?
I've read quite some post about the angularjs html5Mode including this one and I'm still puzzled:
What is it good for? I can see that I can use http://example.com/home instead of ...
0
votes
1answer
22 views
Read a particular json value with angularjs
I use angularjs for read a particular json value :
$http({method: 'GET', url: urlVersion}).
success(function(data, status, headers, config) {
console.log("success data " + status);
$scope.ext ...
0
votes
1answer
11 views
supporting multiple binding sources in angular.js directives
I am using controller as vm type of notation in my app. this works in my directive (pretty much the same as using $scope) as long as I use the directive within the area where ctrl as vm was defined, ...
0
votes
1answer
9 views
delay navbar rendering until http return
Our single page app load personal menu tree from a $http call.
I use the recursive template to render the menu. it appears the page is rendered before menu retrieved from server. How Can I make the ...
0
votes
1answer
21 views
Writing an AngularJS service to persist data
I'm trying to code up a nice user-based service which should persist some session vars. I'm having a bit of trouble nailing this down, so your guidance would be appreciated.
Here's the "userService" ...
0
votes
1answer
15 views
Passing values of a select option in angularjs
I am trying to pass in the value of the selected option to my ng change function. Shown below is my code
<select ng-model="this.value" ...
0
votes
1answer
10 views
angular ui-router stateParams persisting
i am using ui-router for my SPA but I am having issues with the states. My state is setup as below
$stateProvider.state('product', {
url: '/product/:category/:product',
templateUrl: ...
1
vote
0answers
12 views
Angularfire pagination
I am currently building a small personal blog for myself by using Firebase and AngularJS.
Now, I don't want to show all of my posts on the same page. It would soon become slow if I start posting ...
0
votes
2answers
16 views
AngularJS - validating available email on element bind
I am using a 'required' and 'email' validators on the 'email' input field. The validators make use of parsers and formatters and they work fine. However, I also have some validation on 'bind' event.
...
-1
votes
0answers
5 views
Configurable AngularJs Wizard Flow
I am looking for some help converting a dynamic wizard flow from jquery to AngularJS
So basically, I have a server that based on complex rule flows decides the flow through the wizard. On top of ...
0
votes
0answers
27 views
AngularJS directive not getting value from service
In a nutshell, I'm using an AngularJS service in both a directive and a controller. When a change to a service value is performed in the controller that value does not update in the directive. What am ...
0
votes
2answers
11 views
Change the url with Angular UI-Router, do nothing else
There doesn't appear to be a built-in way to update the url without running all of the other processes, e.g. invoking controllers.
The option "reload", only works with $location.search()
Is there a ...
0
votes
1answer
18 views
Why isn't ng-repeat selecting my option when that value is already set?
It appears that even though I have the ng-model value set before ng-repeat creates my option, the option that corresponds to the value is not selected.
I'm i doing something wrong? or is this just ...
0
votes
1answer
16 views
how to use $q promises to work with multiple(in loop) asynchronous api call parallely in angular js?
I have an api :"http://me.apiary.com/1/user/{uid}", which i have to call multiple times parallely and asynchronously with various uid.how is it possible to call parallely and asychronously in angular ...
0
votes
0answers
9 views
Can ng-grid have multiple fields in a single cell/column?
I'm creating a table that will be a readonly display of information. Using the table row ng-repeat approach I can easily define cells that contain multiple values from my model such as the following:
...
1
vote
1answer
18 views
Save modified json file with AngularJS
I'm creating a phonegap app with AngularJS that uses a .json file to store an array of entries. My aim is to allow the user to mark some of them as favorites, and then use that data somewhere else ...
0
votes
0answers
21 views
Use the Angular 'orderBy' filter with array & function
The array of objects that I want to sort looks like this:
var students = [
{'name': 'AAA',
'year': 'freshman',
'score': 90,},
{'name': ...
0
votes
1answer
15 views
Testing factory that returns $http promises
Trying to test an angular service that returns an $http GET request and the then handler, but I'm not able to test that the logic actually works inside of the then function. Here is a basic, truncated ...
0
votes
0answers
13 views
Angularjs Typeahead Performance too slow
I have a list with like 1000 fields and i want to make it autocomplete, but performance seems to be to slow.
Is possible to use typeahead with big lists? This is an example code:
<input ...
0
votes
2answers
13 views
Is it possible to use spyOn on a method of an injected service?
I'm writing tests for a controller in Jasmine; the controller is dependent upon a service, which I inject using beforeEach(inject). However, when I try to spy on a method in the service, I always get ...
0
votes
0answers
18 views
Use HTML in Angular Directive parameter
I'm trying to pass html code to an angular directive as a parameter. Is this possible?
Here's the directive in the html. Inside the directive, the <br><br> comes out in plain text.
...
0
votes
1answer
14 views
How do you get an array of selects values from multiple select boxes?
I am trying to get an array of the values of dynamically generated select boxes in a table. How could you get an array or another data type of these values?
Here is the table:
<table>
...
-2
votes
1answer
18 views
How to display tooltip on hover event for all td values using directive in angularjs and jquery [on hold]
I want to display tooltip that contain the value of a TD value in a table
I want to do it using directive and jquery
Help me please, this is the jsfiddle link :
[blog]: ...
0
votes
0answers
18 views
Angular ngGrid data presentation
I'm new to Angular and my experience with Javascript is not very extensive. I am failing to show data in ngGrid using following code. What is the problem?
In essence. I am loading data from a ...
0
votes
0answers
9 views
How to assign ng-submit on parent controller without name
I'm developing with ionic, so angularjs framework. I dont have the app and my controllers separated. My code looks like:
angular
.module('myapp', ['myapp.services', 'ionic'])
.config(function ...
0
votes
1answer
12 views
convert jQuery tree view to AngularJS
I have this jQuery function that I'm trying to convert to AngularJS. The function turns nested lists into a tree view structure. I have looked at several examples that create the tree completely in ...
0
votes
0answers
16 views
AngularJS circular dependency issue with $http
I am having an issue with circular dependancy. I built a $http interceptor to handle all $http errors and alert the user with a modal(Angular UI-Bootstrap).
The dependency chain looks like this:
...
0
votes
1answer
9 views
Getting Information From Mongo And Displaying It With AngularJS
Hello I am trying to learn the mean stack and seem to be stuck.
I created a node.js, express angular and mongo project.
I have installed mongo with npm install mongodb
How do I pass data from mongo ...
0
votes
0answers
14 views
how to show popover using directive in angular?
I am generation a rows dynamically and show popover on each row (star icon).here is my plunker.i insert the pop over code inline.
http://plnkr.co/edit/RE3jBCAdb3CvrnLE7v8M?p=preview
There is the ...
0
votes
0answers
23 views
Is there a way get width and height of child element in a directive in Angularjs
I am using an angularjs directive with a template to append divs to element. CSS automatically styles its width using max width. How do I find this width for further processing? I tried:
for(var ...
-1
votes
1answer
36 views
AngularJS share model between controllers
I'm developing an application to show some charts and some controls to filter the data presented. The structure of the HTML page is the same, so I though I could make an HTML template and use it with ...
0
votes
1answer
36 views
Angular.js Strange Behavior - Button must be clicked twice for drop down menu
In angular.js, I have a button that gives a drop down menu. The issue I am having is, consistently, I have to click on the button twice for drop down menu to appear. The first time I click on the ...
0
votes
2answers
16 views
What is the equivalent of the emberJS routing beforeModel function just for angularJS
With emberJS I can intercept a state/route activation process with:
http://emberjs.com/guides/routing/redirection/#toc_before-the-model-is-known
overriding the beforeModel function.
What is the ...
0
votes
0answers
19 views
AngularJS Prevent $watch from firing when syncing data model with URL
I'm trying to keep a data model in sync with the url:
When my url updates, and $stateParams changes, selectedNode is found
$scope.$watch('$stateParams', function (params) {
// some logic
...
0
votes
4answers
35 views
Returning a Json object from c# to an Angular controller
I am trying to return a Json object from a C# WebAPI method. My current c# code creates an IEnumerable type, populates the object of a class, then returns it to the JavaScript call. However it's ...
0
votes
0answers
8 views
Angularjs how to parse ASCII
Whats a good way to parse ASCII code in Angularjs?
When I have:
$scope.title = 'Bezig met verifiëren...';
I get as output:
Bezig met verifiëren...
instead of
Bezig met ...
0
votes
0answers
10 views
AngularJS not loading in outside library (CodeMirror) correctly
I am trying to use CodeMirror in my AngularJS application. I included the codemirror .css and .js files by downloading the lib folder and linking them in my index.html of my angular project. I then ...
0
votes
1answer
19 views
avoid DOM manipulation using jQuery in ng-repeat
I am new to angular and working on a simple CRUD application. I understand that I must avoid DOM manipulation using jQuery if I can.
I am displaying data on the page after I get data from server ...
0
votes
2answers
19 views
AngularJS - redirect to another page
I learn AngularJS and I have a problem with redirecting page.
Usecase:
I have a index.html homepage but if the user is not logged in then it should redirect to the login.html page (also each page ...
0
votes
1answer
21 views
Angular with asp.net and multi page
I am trying to create angular application were a user see login page and after success of login (3rd party system), the login page send validation request to the server, if the validation is ok, the ...