Tagged Questions
0
votes
0answers
7 views
ng-if not working with jquery mobile adapter
ng-if not working with jquery mobile adapter as it uses angularjs v1.0.6 and ng-if is introduced in v1.1.5. So what is the solution?How i can use ng-if i am using angularjs, jquery mobile and ...
1
vote
1answer
18 views
cancelling angularjs timeout after route change not working
I'm have a timer that polls a server for data every 10 seconds. However, everytime a user switches to another controller, the timer should get destroyed. For some reason it's not happening with my ...
0
votes
2answers
31 views
AngularJS - ng-repeat/array/ajax - How to avoid refreshing DOM on each request
Afraid of creating a duplicate question:
I'm having a problem with Angular and it's driving me insane.
I'm building a front-end to a mail-system. It's nicely split up in controllers and services. ...
0
votes
0answers
15 views
angularjs custom checkbox button
Hi I'm trying to make a custom-styled checkbox in my angularjs application. Everytime a user checks or unchecks the checkbox, it sends a call to the server. However sometimes when I check or uncheck ...
0
votes
0answers
35 views
angular ng-repeat without element
I would like to use angular's ngRepeat or similar to create some formatted text inside a "pre" block. For example, something like this:
function MyController($scope)
{
$scope.data = [{test:'one', ...
2
votes
1answer
16 views
Angular scopes and losing binding
I haven't been able to find anywhere else that really helps me understand my Angular problem here but I suspect it has something to do with inheritance that I haven't completely grasped yet.
I'm ...
0
votes
0answers
15 views
Angular.js updating SVG templates in directives
A while ago I asked about "Angular.js rendering SVG templates in directives", where I was replacing the DOM nodes that angular makes when rendering templates, with SVG nodes. I got a response that ...
0
votes
1answer
32 views
Show value outside the ng-repeat
I want to show {{Brand.BrandDetails.Text}} only one time outside the ng-repeat.. how can i do this (repeat also want).
<li ng-repeat="Brand in Brands">
<a href="#">
...
0
votes
0answers
11 views
Autoscrolling with linebreaks with angularjs directive
Hi I'm building a chatapp in angularjs and my autoscroll works when there are no linebreaks in the message. However, when there are linebreaks the autoscroll doesn't goes all the way down. In my ...
0
votes
1answer
31 views
jQuery not working with ng-repeat results
I am using ng-repeat to build an accordion using jQuery and TB. For some reason, this is working perfectly when hardcoded but fails to trigger on click when inside of the ng-repeat directive.
I was ...
0
votes
2answers
33 views
Accessing scope form ng repeat in new modal
I am attempting to create a modal that will open an articles main reading, however I cannot seem to get the scope. Right now the JSON file is just the excerpt eventually it will be a full article so ...
0
votes
1answer
17 views
Custom Angular.js filter returning nothing in IE8 on ng-repeat, works fine in Chrome/FF
I have written a custom filter to change the output of ng-repeat. We have a list of files in JSON and I am creating the links to assets from the filter, as the json builds them with just the filename ...
0
votes
1answer
17 views
Custom directive scope not being initialized properly when used with ng-repeat
I have a problem with passing object information to my custom directive, which has an isolate scope. I have boiled my problem down to this simple plnkr to demonstrate the wall I am hitting:
...
1
vote
1answer
20 views
Ng-Select in Ng-Select choose the next value from the first select box
I have a situation where i have a select box that contains years (let's say 2014,2013,2012)
for each select box there are quarter for example: (2014->{q1},2013->{q1,q2,q3,q4})
i want a simple way to ...
2
votes
1answer
47 views
AngularJS change order of which directives are compiled
As far as I've noticed Angular compiles things on a first come, first-serve basis which is kind of tricky. I made a directive which wraps some elements around and I want to have a link property which ...
0
votes
2answers
31 views
Anjularjs Filter not working
Iam Totally very new to Anjular Js. Just started a hour back to dig in it.
The filter not Working in this page. Iam blank in this..
Iam very sorry to ask such a silly question...
...
1
vote
1answer
41 views
AngularJs: grab compiled html and set into tooltip
I'm using angular js bootstrap tooltip to show tooltips on a set of elements.
Plunker: http://plnkr.co/edit/9xk41f3CR0wnajN71bSi
I need to inject into the tooltip html compiled by angular, but i ...
0
votes
2answers
28 views
Triggering a function with ngClick within ngTransclude
I have an unordered list loaded with four items from an array while using ngRepeat. The anchor tag in the list item has a function in the ngClick attribute that fires up a message. The function call ...
1
vote
2answers
37 views
API JSON response using ng-repeat in AngularJS
I'm having a weird issue using ng-repeat on the JSON response from the Google PageSpeed API. Basically, I have it working BUT it is oddly returning an odd BLANK UL before followed by the correct ...
4
votes
1answer
49 views
Using $watch to update data, ng-repeat not reflecting changes
I have a list of fooditems in $scope.raw and I want to show this data in columns so I'm changing the structure a bit. I do this in the sortStuff() function and store the updated data in ...
1
vote
2answers
15 views
Angularjs ng-repeat input blur after one keystroke
If I try to do a ng-repeat to databind some fields to an array for example using the $index value then the input blurs automagically after 1 keystroke. Check the example to see what i mean.
(tested ...
0
votes
2answers
16 views
Angular UI Bootstrap, how do i do typeahead on an array of objects in AngularJS?
http://plnkr.co/edit/VSA1gVEixxis7utvAoQr?p=preview
I get that "state for state in states" works because it's just an array of Strings. I'd like to loop through an array of objects shown in ...
0
votes
0answers
34 views
AngularJS Nested Ng-repeat Counter Decrementation
I am trying to decrement a counter within a nested AnguarJs ng-repeat. I know it is a problem of scope, because the increment in the outer ng-repeat works fine, but in the inner ng-repeat is where I ...
1
vote
1answer
32 views
Angularjs : Loop all isolated scope Directive Templates, on click of one
I have html:
<div ng-repeat="mydata in data" class="ng-scope ng-binding">
<p class="ng-binding">{{mydata.postdata}}</p>
<div my-rating rating-value="rating" ...
0
votes
1answer
29 views
ng-show is not working in table while the same statement working in div body
I have two tables inside a div element. I want to hide both the tables when template loads. and want to show them based on conditions. for this i created two tables inside a div and placed ng-show ...
0
votes
2answers
57 views
return only first day of month from javascript array?
OK I have an array as follows:
[0 … 99]
0: Object
date: Mon Jun 17 2013 00:00:00 GMT+0200 (CEST)
1: Object
date: Tue Jun 18 2013 00:00:00 GMT+0200 (CEST)
2: Object
date: Wed ...
0
votes
1answer
29 views
Sort ng-repeat grouping by boolean value
In my angular js attempt, I have a json :
[
{
"id": "1111",
"peopleRelated": [
{
"summary": "Manager",
"personName": "Suzanne",
"personId": 382043,
...
0
votes
2answers
56 views
angularjs directive not run going into
Ok I have an issue with directive that lay on ng-repeat but as well without at not running.
so this is the come
main template:
<div ng-if="[%!query.$resolved%]">
<div ng-cloak ...
2
votes
1answer
77 views
Angularjs pass multiple arguments to directive ng-repeat
I am stuck in a doubt I have html :
Here, there are two types of data : post and person. The json for each post has array of persons. I wish to retrieve the rating Value, dataCategory and id ...
1
vote
1answer
60 views
NG-Repeat compare to current date using filter?
Ok I have an object that contains a list of dates and I'm traversing it like so:
<select ng-click="monthpicker()" >
<option class="animate-repeat" ng-repeat="returnpicker in ...
0
votes
1answer
16 views
access child scope property in another child in angular js
is it possible to access sibling properties in angular js? I have a parent and two children
My parent is my parent div
children are:-
1. <li ng-repeat= "item in list"/>
2. and within ...
0
votes
1answer
35 views
ng-repeat with fadetoggle jquery
I have many form in my angular app like this
<form ng-submit="" ng-repeat="app in apps">
<div class="container">
<div id="single-app" >
<div ...
0
votes
1answer
53 views
Validation directive code is executed on every item in ng-repeat
I am writing a single page application using Angular and Breeze. I have a set of entities displayed on my page using data-ng-repeat.
I am doing in place validation on the entities by having an "edit ...
1
vote
2answers
75 views
If else conditions in angularjs templates
I am quite new to AngularJs. I am working on a Q&A Application where i have to render some questions and its answers in the form of a table. I have three Types of questions which I have to render ...
2
votes
1answer
46 views
configure angularjs module to send patch request
I am totally new to AngularJs. I am trying to send a PATCH request using Angularjs to Django Tastypie API's. My code is
var module = angular.module('myApp', []);
module.config(function ...
0
votes
1answer
28 views
Select multiple objects and save to ng-model
HTML:
<select ng-model="contact.groups"
ng-options="item.id as item.name for item in groups"
ng-multiple="true" multiple>
<option value="">Choose ...
0
votes
1answer
84 views
AngularJS ng-repeat doesn't update when LocalStorage is changed (using store.js)
In my view I want to display a list of items (subject names) which are saved in a LocalStorage element. My code in the view looks like this:
<div class="list">
<a class="item" href="#" ...
2
votes
1answer
38 views
Angular filter exactly on object key
Hi I have a small angular app like so:
html
<body ng-app>
<div ng-controller="Ctrl">
<div ng-repeat="user in users | filter:1">
<span>{{ user.username }}, {{ ...
1
vote
2answers
32 views
orderBy two fields (one in reverse)
I would like to order a friend list by status (online firsts, offline lasts) and by alphabetical order. All I manage to get is:
Online firsts / Reversed alphabetical order
Or offline firsts / ...
0
votes
1answer
58 views
passing model value from ng-repeat to ng-include to a directive using “=” in scope fails
i have the following code in my homepage
<ul>
<li ng-repeat="item in list" ng-bind-html-unsafe="item.Content" ng-include="item.Template" > </li>
</ul>
the value of ...
2
votes
3answers
48 views
Ng-repeat priority
I have the following:
app.directive("myDirective", function($compile) {
return {
replace: true,
scope: {},
template: "<div></div>",
link: ...
1
vote
1answer
77 views
ng-repeat 'track by $index' behaviour on element removal
I am building an app which features a kind of "playlist". This is represented an ng-repeated custom directive with ng-repeat = "element in playlist"
Because I want to allow a user to re-use the same ...
0
votes
1answer
24 views
Detect when a custom filter has completed in AngularJS
I have a custom filter function I'm calling for ng-repeat directive:
<div ng-repeat="app in appVm.appList | filter:appVm.assetFilter">{{app.title}}</div>
This obviously hits my ...
0
votes
0answers
37 views
how to add directives dynamically while using ng-repeat in angular js?
i have the following code on my homepage:-
<ul>
<li ng-repeat="item in list" ng-controller="controller1"></li>
</ul>
now item has various properties like item.type, ...
3
votes
2answers
113 views
+50
AngularJs - ngRepeat with a filter that returns a new object
I'm trying to apply a transformation to the objects in my filter, which results in an array of new objects being returned. This is because I want to filter the objects AFTER the transformation is ...
0
votes
1answer
40 views
trigger function after ng-repeat
I am new to Angular, and I would like to do a really basic example.
After displaying some data with a ng-repeat, I would like to use some of those data with javascript functions. But I don't know when ...
0
votes
1answer
46 views
AngularJS loop through JSON and check if multidimensional
I have the following controller:
controller('homepageCtrl', function ($scope) {
$scope.menu = {
"Home": "/",
"Data Sources": {
"Add": "/datasources/add",
"Edit": ...
0
votes
2answers
36 views
Need a callback after filtering the rows when using ng-repeat along with filter in angularjs
I am using angularjs, ng-repeat to fill the required data in the datagrid.
Something like this:
<input type="text" placeholder="Search" ng-model="query">
<tr ng-repeat="item in items | ...
0
votes
0answers
44 views
Creating a side panel for Google Map using Angular & Firebase
I basically want to create a map (similar to this: http://econym.org.uk/gmap/example_map2c.htm ) where there's a main pane with markers on Google Maps and a side panel with name of each marker (and ...
0
votes
2answers
357 views
How to highlight a selected row in ngRepeat?
I couldn't find something that will help me to solve this simple issue
in Angular. All the answers are relevant for Navigation bars when a comparison
is being made against location path.
I've built a ...