1
vote
1answer
44 views

Getting dynamic form values

Is there a way to check which like option is selected for which text box when submitted. As shown below user may select like only for some text values. The html tags are dynamically generated based on ...
0
votes
3answers
42 views

Angular js: How to pic 2 data at a time with “ng-repeat”?

I want to achieve something like this with "angularJS". var myData = [ "Data1", "Data2", "Data3", "Data4", ... ]; var cDom = ""; for(var i=1;i<totalLength;i++) { cDom = cDom + ...
0
votes
0answers
35 views

ui-select inside ng-repeat highlights too many items on the first popout

I have the following issue with ui-select: All choices inside dropdown list are highlighted in blue background color for the first ui-select element. Please refer to this plunk. <form> ...
1
vote
2answers
42 views

Angular UI Sortable not working properly

I am working on Angular UI for making my menus sortable, sometimes the code works and sometimes its breaks like duplicating the entries or filling the blank menus when I am re arranging items. ...
0
votes
0answers
18 views

AngularJS with spring ModelAndView Ajax

I am sending a request from below jsp <body ng-controller="MyController"> <div data-role="page" class="container"> <%@ include file="header.jsp" %> <div ...
0
votes
1answer
41 views

Angular js - pop up value not reflected in ng-model, and not able to close

I am trying to add the mark details of student and the teachers comments about the student using angular js, as below. I have inlcuded pop up component from my controllers.js at run time based on ...
0
votes
0answers
26 views

slide toggle from left to right in angular js

I am using hide and show an element using the angular JS . Angular toggle collapse working fine from slide up and slide down. How can I do the same thing sliding from right to left with some ...
0
votes
2answers
60 views

Angular JS - Is there any way to dynamically select templates

i have a problem with angularjs router function: How can I dynamically choose templates for my app. I have an app which is completely drive by 'its api's'. The api's contains 'template info along ...
1
vote
1answer
96 views

Dynamic angular-strap modal template content

I want to get angular-strap modal content through a http service and after completion of service create a dynamic html content on basis of response, and show this content in modal. In short need an ...
0
votes
3answers
101 views

AngularJS ng-repeat issue with removing duplicate keys in an object

I'm trying to use ng-repeat to repeat the rest of data if the attribute is the same. This may not sound clear so here is an example. JSON sample, which is an array of books ...
0
votes
2answers
38 views

AngularJS if statement condition in an ng-repeat

I'm using ng-repeat in AngularJS <ul> <li ng-repeat="question in questions" class="question list-group-item media"> <span class="question__type">{{ question.question ...
0
votes
2answers
53 views

ng-repeat takes a lot time to render html?

repeat which has data around 4k +. it takes a lot time to render html. I am getting data from backend in 3 sec and ng-repeat takes around 9 secs to render all the 4k + records. Is there any way I ...
0
votes
1answer
63 views

how to do filter using range slider in angularjs

In my application, I have used pricing slider. When I change minimum and maximum value of pricing slider, I need to filter based on the range. In angularjs, how to do this one. Can you please any one ...
0
votes
1answer
52 views

Angular js animation

I have simple demo and need help in animating it. Can you pls provide some help? Here is demo. Here is code: var demoApp = angular.module('demoApp', []); function ...
0
votes
1answer
37 views

How to generate html markup based in json property value in AngularJS?

I got json (model property) like this: [ {type:'a', val:'something'}, {type:'b', val:'something'} ] Based on value of 'type', i need to render different html markup. I know i can accomplish it via ...
0
votes
1answer
39 views

I am able to query my api call, but i am not able to show it via angular

I have made an JSON api. I like to query this with angular.js. On my webserver i see the request comes in, and returns a status 200, so the data are called by angular. For some reason however, i am ...
1
vote
1answer
41 views

How to search items from different views in Angular.js

In my home: .state('home',{ url: '', views: { '': { templateUrl: 'views/main.html', controller:'MainCtrl' } ... I loop through ...
0
votes
1answer
410 views

AngularJS controller, required by directive, can't be found (solved)

I have an error for each "message" Error: [$compile:ctreq] Controller 'accordion', required by directive 'accordionGroup', can't be found! with my code in html <h2 ...
1
vote
1answer
48 views

datepicker not visible in mean stack example

I am a newbie to the MEAN stack.So to start it off I use the help of this tutorial to build my first application ...
1
vote
1answer
250 views

making a ajax call to populate scope data in angular js

Hello i have a angular js controller like this function InstantSearchController($scope){ $scope.items = [ { url: 'http://tutorialzine.com/2013/04/services-chooser-backbone-js/', ...
0
votes
1answer
237 views

How to pass ng-model value to anchor tag which opens an HTML overlay?

I have a scenario where I display many posts on a HTML page using AngularJS and every post, when clicked, shows associated data in an overlay. Data is displayed on main page using ng-repeat tag and ...
0
votes
1answer
37 views

How can I read List of objects in angularjs

How can I read below result in angularjs in controller.js { "placeList":[ [ { "address":null, "name":"Len The Plumber" }, { ...
2
votes
1answer
302 views

Using ui-select2 with ng-repeat does not set the model correctly

First, some background: When using ui-select2, you have to supply an initSelection function in the select2 config object. If you don't, you'll get an error (but the functionality won't be affected. ...
0
votes
1answer
342 views

How can I limit the size of attachment (file upload) in AngularJS?

I want the best way to upload files with loading image in AngularJS. At the same time i want to limit the size to 10MB. Please give the best way to achieve this?
1
vote
1answer
97 views

how to show accordion-group based on items in array

I want to show an accordion-group of angular-ui only if an array contains items. this can be changed dynamically. I tried to use ng-show but since the array starts without items it is not displaying ...
0
votes
0answers
83 views

angularJS watching values of an object list

I have a List containing objects in my angular js project. Each object of the list contains a name and a value. This value is bound to a text field. The list is displayed on a grid and when ever the ...
0
votes
0answers
81 views

Angular JS - show multiple data elements in a row

I want to add below structure. this is present in <table> tab. With angular's ng-repeat how to render multiple columns? e.g. as show in 1st screenshot, Eot,Kiran,Master are 3 entries which need to ...
0
votes
1answer
250 views

How can I get all the selected objects of Checkboxes in AngularJS?

I want to get all the selected objects of the checkboxes using AngularJS. Below is my case My view.tpl.html <tr ng-repeat="item in itemList"> <td> <input type="checkbox" ...
0
votes
3answers
70 views

multiple filters in angular view

I have this <li ng-repeat="phone in (filteredNumber = (phones | filter : 'jason Raq'))"> this works fine and show me the name json Raq as filtered result but now I need two names . Jason and ...
2
votes
1answer
452 views

background default image if ng-style image loaded is invalid url

I am adding background images to my div like this ng-style="{'background-image' : 'url('+ myvariable.for.image +')'}"> where myvariable.for.image is a url like /examplesite/image/id This works ...
1
vote
2answers
260 views

css in angular not working

I am trying to have background image of a div injected dynamically. I see images getting loaded fine but the CSS doesn't change and div never get the background-image. what am I doing wrong I have ...
0
votes
1answer
4k views

How to remove deleted row in ng-table

I have a grid developed using ng-table and I need to remove selected item from grid table after removing from server-side. Already tried to call the grid loading ajax again, but it's not working. My ...
1
vote
2answers
605 views

Angularjs ui:sortable in ng:repeat not behaving as expected

I'm trying to make a drag-and-drop editor for the values of an HTML <select> menu, with <optgroup> grouping. I've been working in a JSFiddle; here's what I have at the moment. It ...
0
votes
1answer
108 views

How to change class depending on filter result in AngularJS?

I cannot work out how to change the style of a class depending on the status/result of the filter. My code: <div data-ng-if="search.length >= 3" > <div ...
5
votes
1answer
2k views

angularjs text area character counter

Hi I have a characeter counter for a text area. My problem is that it doesn't count spaces or linebreaks. How do I make it so that it does so? <div class="controls"> <textarea ...
1
vote
1answer
384 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
113 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
2answers
635 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
1answer
2k views

Dynamically reloading ng-repeat data in the DOM

I have the following code in my view: <li ng-repeat="i in items">{{i.id}}</li> I would like the ng-repeat to be trigged dynamically when new values are added/removed from items. As in, ...
6
votes
4answers
11k views

How to achieve pagination/table layout with Angular.js?

Let's say I receive an object literal with 15+ objects and I need to display them in a nice layout (not all in a row), what is the most efficient method for controlling when the line should break/page ...
0
votes
1answer
428 views

AngularJS Directive for decimal numbers between 0 and 1

I want a directive in AngularJS which should allow decimal numbers between 0 and 1. In addition, it can allow "-1" as well. For eg: -1 is valid 0 is valid 1 is valid 0.12 is valid 0.99 is valid ...
1
vote
1answer
1k views

How to update $scope.items array order in response to user re-sorting the DOM array using Angular-UI ui-sortable directive

I am using ui-sortable directive (from angular-ui ) in the view <ul ui-sortable> <li ng-repeat="item in items" > {{item.property1}} {{item.property2}} </li> ...
1
vote
0answers
276 views

AngularJS ng-repeat not working with DatePicker controller

I can't seem to get the inlined calendar button associated with the DatePicker to work using ng-repeat on two DatePickers. They both work when I instantiate the DatePickers separately, but I wanted ...
5
votes
2answers
3k views

Challenge repeating tr with ng-repeat

I'm struggling with a special use case. I provide you with a jsfiddle snippet at the bottom. 1. The HTML table My HTML is a table. ng-repeat directive must be applied to an html element. In my use ...
1
vote
3answers
475 views

Bitwise Angular Expression not working

I have a basic ng-show expression as follows: ng-show="((message.status & messageStatus.Spam) != 0)" However, this fails with the following msg: "Token '&' is unexpected, expecting [)] at ...
0
votes
1answer
302 views

eliminate duplicates in the drop down menu using angular ui unique

hi i have an api that takes its value from db. In my api i have a drop down -menu and i have certain categories like food , healthcare and in the drop down the categories gets repeated what should i ...
1
vote
0answers
207 views

Add ng-model to a dynamic directive

I'm trying to create a dynamic directive in an ng-repeat using this code: app.directive('element', function($compile) { return { restrict: 'E', link : function ...
0
votes
1answer
488 views

Select a Directive Dynamically in AngularJS

I have a couple of directives and I want to select each one for the result of the ng-repeat. <div class="{{field.type_desc}}" ng-repeat="field in row.fields"></div> and this is the ...
0
votes
1answer
647 views

Angular UI, Unique not working

So i'm trying to filter my ng-repeat directive by using angular unique module.. but i'm kinda lost, i followed the exact order with adding the scripts... In console i'm getting an error, 'No module: ...
0
votes
1answer
132 views

Adding elements to accordion headings with angular

In the angular application I'm working on, I need to display some data with an accordion and add a button or some other kind of marker to each heading. Here's an example of what I'm after using the ...