Tagged Questions
0
votes
0answers
17 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
21 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
...
0
votes
0answers
20 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
33 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
53 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
16 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
47 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
82 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
62 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
126 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
50 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
79 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
53 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
26 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
32 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
40 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
41 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
61 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">
...
1
vote
1answer
150 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
76 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
103 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
26 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
64 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
67 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
35 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
144 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
79 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
239 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 ...
0
votes
1answer
34 views
Post request is not working in angularjs - Resource services
I'm trying to send the post request to server with post data
it's sent the request to the server, but not in right format
request url like ...
1
vote
2answers
49 views
Pass argument from controller to service in angularjs
I'm facing the problem on passing the argument from controller to service module
I don't know where I have pass the arguments in controller module and how to get the value in service module. here is ...
0
votes
1answer
88 views
how to get headers from response in angularjs
This is my sample, i'm not get response headers, it returns undefined
I'm trying to get custom response headers like reponse.header['X-auth-token'] but it returns undefined
I'm new to angular js, ...
1
vote
1answer
76 views
how to make Generic method for rest call in angularjs
how to make Generic method for rest call in angularjs ?
i have tried for single request, it's working fine
UIAppRoute.controller('test', ['$scope', 'checkStatus', function($scope, checkStatus) {
...
0
votes
1answer
71 views
Error: $apply already in progress
I'm using this http://plnkr.co/edit/sqXVCJ?p=preview on my Angular UI accordion. I've put the directive attribute on the anchor (which is in the template) and I've overriden the template to remove the ...
0
votes
1answer
329 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
2answers
212 views
Display Loading Icon or Loading Progress Bar using angularjs
How to display the loading Icon or loading Progress bar using angularjs. I mean something like this which used in jquery $("body").addClass("loading");, $("body").removeClass("loading");, I saw some ...
3
votes
3answers
2k views
How to detect browser using angular?
I am new to angular. How can I detect userAgent in angular. Is it possible to use that in controller? Tried something like below but no luck!
var browserVersion = int((/msie ...
0
votes
1answer
97 views
Use ng-controller and $routeProvider at the same time
The issue is that I have an index page, whith a(some) partial(s) view(s) that we can call "A.html" with a controller "ACtrl" assigned by $routeProvider, but inside that partial view, I would like to ...
2
votes
1answer
155 views
Access to form controller hidden due to angular ui tab isolated/inherited scope
I have a simple case:
<div ng-controller="myController">
<tabset>
<tab>
<form name="myForm"></form>
</tab>
</tabset>
</div>
and ...
0
votes
1answer
107 views
AngularJS Google Map directive map instance
I'm using http://angular-google-maps.org/ it's nice angular google maps library. But i want use map instance which is loaded not in angularjs context by something like this:
$scope.map = {
events: {
...
0
votes
0answers
102 views
$scope.object is undefined angularjs
Can you please assist in finding why $Scope.notify is undefined, infact the other function is working totally fine.
services.js [ postmain and allresults are working fine but not notifyadd??]
...
1
vote
0answers
43 views
Ui mask partial value
Hi for the UI mask in angularui is there a way to only grab a portion of the value from the input box? For example:
<input type="text" name="myInput" ui-mask="999-999-9999" ...
1
vote
2answers
48 views
Grab $viewValue from controller
How do I access $ngmodel.$viewValue in the controller? I have a ui-mask and it's not producing the correct value for the ng-model so I want to extract the value I see from my input field.
0
votes
1answer
153 views
Ui mask value not matching ng model
Hi I am using a ui mask to format a phone number in an input box. Problem is the ngmodel is not matching what I see on the screen. For example:
<input type="text" ui-mask="999-999-9999" ...
1
vote
1answer
202 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
54 views
How to use angular directive inside a markdown that is converted via Showdown?
I have a markdown directive that loads a markdown file and displays it as HTML:
// detail.html
<div markdown link="{{post.file"}}"></div>
This works fine, even when I have HTML tags in ...
2
votes
2answers
365 views
angular-ui-layout - adding drag ended/panel resized event
I'm working with the angular-ui-layout plugin
That link is the source code, on line 211 there is the following code to handle mouseup:
htmlElement.on('mouseup touchend', function () {
...
0
votes
2answers
171 views
Ng-repeat not showing JSON data in Angular-UI
I am trying to pull in data from a JSON file and use it to populate a navigation menu, composed of Divs that collapse using the Angular UI collapsible function.
I've enclosed a plunk: Plunk of the ...
0
votes
1answer
83 views
Angular JS showing last few lines in textarea
I have a textarea and by default it shows the contents from the beginning. I want to make it show the end contents by default and if you scroll up it should show the contents at the top.
How can I ...
0
votes
1answer
34 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"
},
{
...