Tagged Questions
AngularJS is an open-source JavaScript framework. Its goal is to augment browser-based applications with Model–View–Controller (MVC) capability and 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
12 views
AngularJS ng-repeat rerender
I'm building a simple app with AngularJS. The app make a async AJAX call to the server and the server returns an array like this:
{
paragraphs: [
{content: "content one"},
...
0
votes
1answer
14 views
Combine ngRepeat and conditional directive
I'm trying to learn some AngularJS for a project. In my model I have a list of elements that can be of different types. Now I want to show them in a table that looks similar to this example:
...
0
votes
0answers
12 views
AngularJS way to detect selecting the same <option> in <select> dropdown
ng-change doesn't fire if you select the same option. I'm using a dropdown box to select a sort order, and want selecting the same value to re-sort by the same criteria.
On Chrome I can't get ...
1
vote
2answers
21 views
nested ng-repeat doesn't work
I am using ng-table to put an array structure into a table the following way :
<table ng-table="tableParams" class="table" ng-controller="VenueListCtrl">
<tbody>
<tr ...
0
votes
1answer
14 views
Add and remove directives easily
I'm looking for a way to dynamically add and remove directives. After digging around I suspect I'll need to use $compile to bind a directive to an element, however I'd like to do this without ...
0
votes
0answers
11 views
AngularJS / Restangular add item to json file with an incrementa/unique id field
I am building a mobile app using angularJS and restangular for json files.
My app is a simple client book with a lot of fields per client.
My json items have an unique field named "client_id" and ...
0
votes
0answers
20 views
How to open new tab in browser by using $location, angualr?
I have controller 'reportCtrl' and HTML that represents 6 tables with data and only several rows I show at once.
app.js
var appReport = angular.module('myAppReport', []);
...
2
votes
1answer
27 views
Replacing jQuery 'on' function in AngularJS
I have some legacy jQuery code that looks like the following:
$(document).on('replace', 'div', function (e, new_path, original_path) {
// do stuff here
});
I'm trying to figure out how to move ...
1
vote
0answers
13 views
StellarJS does not get initialized after logout in Angular
I'm using Stellar.js in my Angular application.
I'm using the stellar-directives from: https://github.com/Pleasurazy/angularjs-stellar
On the homepage (only place where I'm using it), I initialize ...
0
votes
2answers
28 views
How to access instance of service?
In an angular service, how can I set correct this:
var fruit = $http.get("url", {cache:false});
$q.all([fruit]).then(function(val) {
this.fruits.push(val); // this.fruits is undefined. Need ...
0
votes
1answer
10 views
Append items to a local Firebase ref AngularFire
Let's say I'm building an infinite scroll of articles.
My article ID is passed through the URL:
var id = $stateParams.id;
I want to startAt that index in my Firebase collection and limit 10:
var ...
1
vote
0answers
21 views
custom vim syntax highlighting for angularjs is flaky
I am doing angularjs development and have a bevy of HTML ng-templates included inside tags in my HTML, like so:
<script type="text/ng-template" id="content_listing.html">
...
-1
votes
2answers
22 views
Angular JS showing user error message after ajax post in a div
I have a simple form, when posting then on error I want to feedback to the user the error message on screen in a div box. What would be the best way to do this?
This is my controller so far:
...
0
votes
0answers
10 views
Bootstrap Carousel doesn't seem to go past 2nd slide
I'm using angular bootstrap carousel but the slide doesn't go past second slide.
I'm using same html and Controller logic as given in http://angular-ui.github.io/bootstrap/
<div ...
0
votes
1answer
23 views
How to properly structure/update directives with data from service in angularjs?
On first load, I want an application to retrieve data asynchronously on first load from X number of http requests (X is based on the number of elements in fruits), and update a directive that shows ...