0
votes
0answers
28 views

Ok to use element.addClass in angular?

Loving using angular but want to keep to the "best practices" and not get into bad habits. Currently making a desktop application which is also available on mobile devices and found the bindonce ...
0
votes
0answers
22 views

nvd3, angularjs, using angularjs-snap for vertical slider with dropdowns, lists

I am creating charts using nvd3. The data for the charts depends on the customer id which I need to select from a dropdown. Similarly, in future I would like to have carrier list, city drop down, etc. ...
-1
votes
1answer
45 views

Query not working for me

I am using angularJs ng-resource.I have tried this angular.module('app.services', ['ngResource']) .factory('AngularIssues', function($resource){ return $resource('../test.json',{},{ ...
0
votes
2answers
53 views

how to store and retrieve data in anguar js?

can you please tell me how to store data permantly (example local storage)and retrieve data .I want to store data so that I get again .I am doing client side programing ? I google it it say there is ...
0
votes
1answer
15 views

Compile custom directive before ui-bootstrap directive

I'm trying to create my own directive for a datepicker so when the page is opened on a mobile device the input type change to type="date" and the native datepicker gets displayed instead of the ...
0
votes
2answers
48 views

how to make ng-model value set by ui-select value

I am currently using angular-ui/ui-select in my project. I am able to bind the value of the ui-select to an object without issue, however it is binding the entire item that is being iterated over. I ...
2
votes
3answers
45 views

Angular JS Date format inside Ng-Repeat

Actual Date coming from JSON Need to format it as below . Effective Date : 2010-08-31 (trim the time stamp) End Date : 2010-08-31 (trim the time stamp) Am using the below code for Formatting the ...
0
votes
2answers
51 views

Is there a more elegant hide/show pattern in angular?

So I have a crowded screen that is incorporating many ng-hide/ ng-show directives. YEAH! So the common patter is: <div . . ng-hide="showCurveForm" ng-click="toggleCurveForm()"> ...
0
votes
1answer
32 views

angularjs module/directive for Syntax Highlighting

I'm looking for a good angularjs module/directive for Syntax Highlighting (js and a whole html page). I found http://ngmodules.org/modules/angular-highlightjs it's good but it cuts off in ie ...
0
votes
0answers
30 views

Why angular-ui-bootstrap progressbar repaints?

in this site i have a progress bar showing the progress for answering questions. it uses angular-ui-bootstrap. when i continue to the second question, the progress bar repaints and you see a ...
0
votes
3answers
52 views

Dynamically populate dropdown list based on previous field

I am using AngularJS to create a form with several dropdown list. I want to easily define this logic: If dropdown n selected item x, other dropdown below (one or more) will be populated with y data ...
0
votes
1answer
21 views

Problems with ng-router and anchor tab

MyApp.config([ '$routeProvider', function($routeProvider) { $routeProvider .when('/getAttributes', { templateUrl : 'view/attributes.jsp', controller : 'attributeController' ...
0
votes
1answer
36 views

Angular ui directives as attribute

Is it possible for me to use angular ui directives as attributes or class instead of elements?? eg: <ul class="accordion"> <li class="accordion-group"> my content ...
1
vote
0answers
71 views

Angular UI Bootstrap date-picker Combined With UI.Mask

I am using the angular UI bootstrap popup date-picker to build a directive that will easily allow me to add the date-picker where need. When I combine this with the uiMask Directive, the values in ...
-4
votes
0answers
31 views

Time scheduler in angulajs

See attached image, If I select day time in first row then I cant select same value and between the value in second or other row. Please help me i want in angularjs
0
votes
1answer
45 views

Service not working - AngularJS

My task is to create a form and display the entered data to a div on clicking 'Submit'. The task involves creating two directives, one for creating the form and another for displaying the entered ...
0
votes
1answer
41 views

ng-route- Parameters with Special Characters

<nav> <ul class="list"> <li ng-repeat="product in data | startFrom:currentPage*pageSize | limitTo:pageSize"> <span>{{product}}</span> <a ...
-1
votes
2answers
53 views

Angular Js navigation issue

I am trying to implement simple login functionality and getting http://errors.angularjs.org/1.2.6/$rootScope/inprog?p0=%24digest exception. What does it mean? and how can i navigate to home page ...
0
votes
1answer
27 views

AngularJS model changes not shown in GUI after directive changes it

I am having an issue where I have a model: <div ng-model="currentAudio">...</div> I have a button (within and ng-repeat in the div of the model above): <button ...
0
votes
3answers
43 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
10 views

Angularjs paginator different actions return to the same page

Put the case you have got a list of users. In the row of each user you've got different button for different actions like suspend (become un-suspend) ban (become un-ban) to manage both the ...
0
votes
0answers
22 views

Updating “treedata” model array in angular-tree-control will not update the UI. Why?

I am using angular-tree-control of wix: http://wix.github.io/angular-tree-control/ The main problem is to understand how to update the UI tree with new children nodes, not by clicking on the folder ...
0
votes
1answer
30 views

Angular how to get route id at resolve block?

How can i get "pageid" inside resolve block? For every url change i had to request the server, along with the "pageid"? My code: app.config(function($routeProvider){ $routeProvider ...
1
vote
0answers
35 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
0answers
38 views

Django-Angularjs dynamic rating app

I trying to create a Angularjs rating app with django. I'm using the rating mechanism from angular-bootstrap. http://angular-ui.github.io/bootstrap/ I've created a controller which can handle ratings ...
0
votes
2answers
61 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 ...
0
votes
1answer
19 views

angular send data to view

I have a link in as this <li ng-repeat="x in data"> <a ng-href="/myurl#/view">{{x.id}}</a> </li> I want to send x.id to myurl controller. here is my router ...
0
votes
0answers
55 views

Add Checkbox to header of ng-grid. At time maximum 2 checkbox selected

[Diseregard checkbox in row in below picuter but] I want to have checkbox besides four header i.e. Maths, Physic, Chemistry and Biology. I also want to this checkbox behave similiar to redio button ...
0
votes
2answers
88 views

How can I trigger an angularjs event handler from another handler?

I'm using AngularJS 1.3.0-beta.2, jQuery 2.1.0, Angular UI 0.11, and my custom version of Angular UI's Tooltip widget, and I want buttons within my tooltip to close the tooltip when clicked. Plunkr ...
0
votes
1answer
99 views

Angular UI Bootstrap - Collapsing tab content

Using the AngularJS UI Directives for bootstrap, is there any way to collapse the tab content using the tag? I have several tabs/pills with content, which will start collapsed (hidden). When any of ...
-1
votes
1answer
155 views

trying to get angularstrap working but no luck

I am trying to get angularstrap working but have not had any luck yet. here is my angular code <!DOCTYPE html> <head> <title>Learning AngularJS</title> <script ...
0
votes
0answers
63 views

getting offset().top of angular bootstrap tab contents

I have a two tabs set up like so <tabset> <tabA> <tab-heading> </tab-heading> <div resize> </div> </tab> ...
1
vote
0answers
94 views

angularjs ng-click not working inside the pop over directive

I added some buttons in the pop over template. when the page finishes the first loading, click on the element on the page, shows the popover, click on those buttons, every one works fine. But when ...
0
votes
1answer
24 views

Is it possible to reference an attribute of the current element in another attribute?

I have the following HTML code which works (it uses angular-ui/ui-router state) but looks too ugly because of 3 repetitions of the same expression: <accordion-group ng-repeat="menuitem in ...
0
votes
1answer
79 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
0answers
27 views

XSS attack in title-tag angularjs

for value "><script>alert('xss');</script> Print value is coming fine because of ng-bind but for title I am not able to stop XSS scripting to run. Is there anything from angularjs ...
0
votes
0answers
35 views

Compilation order of uiTinymce vs ngModel

I have managed to get uiTinymce working in my application but am looking for an explanation of what's really going on because I should not have had to do what I did. I started with this html: ...
0
votes
3answers
45 views

Multiple view for Single Router in angularjs

I have a common HTML where the header got to change after login. <div class="masthead clearfix"> <div class="inner"> <h3 class="masthead-brand"></h3> ...
1
vote
1answer
46 views

Angularjs drag and drop who supports nested drop elements

I am using this plugin of angularJS- http://ganarajpr.github.io/angular-dragdrop/ and wants to achieve something like this- http://jsfiddle.net/J7azG/40/ (similar to "greedy" feature in jquery ui ...
0
votes
1answer
94 views

Add an ID to datepicker of angular ui bootstrap

here is my code after each dateHolder div a date picker is generated.. but want an ID on them <div class="col-xs-12 tn-dateContainers" ng-controller="DatepickerDemoCtrl"> ...
2
votes
1answer
260 views

Show and Hide Alert Using AngularUI Directives for Bootstrap

Am a newbie in the field of web design. I came across bootstrap and later angularjs. I find them quite impressive. I noticed that bootstrap comes with its own jquery libraries and angularjs uses its ...
1
vote
1answer
109 views

angular-ui shift button keypress

I've managed to get enter keypress to work. But I can't seem to get the "shift" button keypress to work. Here is my code for enter: <button class="btn btn-primary order-input-add" ...
0
votes
1answer
140 views

How to call collapseAll function on Angular UI tree?

I am using the angular-ui-tree directive to show a tree in my AngularJS application. However, I would now like to collapse the tree. The documenation states that there is a function called collapseAll ...
0
votes
0answers
33 views

checkbox group directive showing this.ngModels is undefined error

I am using a checkbox group directive and here is the example: http://jsfiddle.net/Alien_time/pWQWG/3/ This checkboxGroup is used to add a ng-required condition so atleast 1 (or the number specified) ...
0
votes
3answers
65 views

Lay out HTML elements depending on the number of elements

The issue is that I have to lay out from 2-4 html video elements, but the number is dynamic, sometimes can be 2, 3, or 4 elements. With 2 I will lay them out both side by side, 3 elements will be ...
0
votes
1answer
88 views

$observe not working in AngularJS

Cannot get the $observe to trigger anything on change. .directive('watchContent', function () { return { restrict: 'A', link: function (scope, elem, attrs) { console.log(attrs.class) ...
0
votes
2answers
38 views

Refactor Code duplication on angular js (any suggestions?)

Any suggestions on how to make my code cleaner and without code duplication?As you can see there are a lot of repetitive declarations. $scope.getStatistics = function(startDate, endDate) { var ...
1
vote
2answers
179 views

Angularjs nested routing and loading multiple pages within a view

I'm setting up an angularjs app that has multiple vertical columns that display on the same page and based on what item is clicked a new or different column will expand. Here's my jsbin example. ...
0
votes
1answer
103 views

ng-disabled in angularjs is not working for me

I'm trying to enable and disable the button using some condition I am able to disable the button using $scope.isDisabled = true; , but can't enable the button Here is my code HTML file <input ...
1
vote
1answer
320 views

Keyup/Keydown/Keypress events not firing in Internet Explorer 11

I'm using a mixture of JS key events and AngularJS to prevent the user from entering non-numeric keys in an input field (via a directive). While the following works in Firefox and Chrome, Internet ...