Skip to main content

All Questions

13 votes
7 answers
43k views

A directive to format phone number

I was wondering how to automatically format a number in an input field using an angularjs directive? When I type in an input field say 6042919283 I want it to be shown as 604-291-9283. Thanks
user1424508's user avatar
  • 3,301
0 votes
2 answers
153 views

In Angular JS, is there a way to watch for changes to the DOM without using scope.watch?

I am attempting to create an angularjs bootstrap accordion that scrolls the accordion to the top when opened. These solutions are close to what I would like to do: AngularJS / ui-bootstrap accordion ...
maverick's user avatar
  • 148
2 votes
2 answers
7k views

how to select value in UI select value?

could you please tell me how to select value in UI-select value ? Actually when user select any name I want to select age of item .Here is my code http://plnkr.co/edit/InxOyQRjrlrDJtx2VuzI?p=preview ...
user944513's user avatar
  • 12.8k
4 votes
1 answer
9k views

AngularJS UI Modal and select doesn't update the scope values

I am having a lot of trouble trying to save values from the modal component available in Angular UI. Here is the page controller that calls the modal dialog $scope.sourceSchema = []; ...
user253530's user avatar
  • 2,591
0 votes
1 answer
3k views

how to select default value of ui select?

could you please tell me how to set default value in UI -select . here is my code http://plnkr.co/edit/tCrEM4oC9iMSYZffbEAX?p=preview I want "Adrian" should select as by default .could you please tell ...
user944513's user avatar
  • 12.8k
0 votes
4 answers
3k views

angularjs share data config between controllers

I'm wondering what could be a good way to share directive between controller. I've got ie two directives to use in different controller with different configuration the first think I thought of using ...
Whisher's user avatar
  • 32.8k
0 votes
3 answers
1k views

$scope variable not changing in controller when changed using directive

I tried in all ways (keeping the scope to false, etc but not able to change my scope in controller),am I missing something. directive: angular.module("ui.materialize.inputfield", []) ....
vanquishers's user avatar
2 votes
1 answer
13k 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 ...
Adwin's user avatar
  • 195
0 votes
0 answers
504 views

How to invoke a modal from a controller in angularjs / ui-bootstrap?

I am trying to display a modal (Note view) from a controller (Details controller). I have separate controllers tied to each view. The Details view has a list of radio buttons and upon selecting a ...
Jyina's user avatar
  • 2,902
8 votes
2 answers
2k 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 now, ...
dragonfly's user avatar
  • 17.8k
1 vote
1 answer
280 views

Save Form data from Popover in Angularjs

var App = angular.module('myApp', []); App.controller('myPopoverCtrl', function($scope){ $scope.myPopover = { isOpen: false, open: function open() { $...
siva sandeep's user avatar
2 votes
1 answer
1k views

angular custom directive two way binding not working inside uib modal

I'm having difficulties with a custom directive two way binding inside uib-modal. The directive gets the model variable from the uib-modal scope, but on change, the model in the uib-modal isn't ...
yl2015's user avatar
  • 381
2 votes
1 answer
809 views

how to use angular expression value as an attribute for html element

I have a scenario where i need to apply different directives (attribute) to a DIV inside a Angular bootstrap Modal at runtime (button click). I would know the name of the directive to apply. But i am ...
sagar's user avatar
  • 359
0 votes
1 answer
8k views

Angularjs custom directive child scope access parent scope method?

I am trying to create a carousel with AngularJS ans UI Bootstrap. Since the carousel in UI bootstrap only supports images, I wan to write my own directive to support youtube video. I want the video ...
Lucius's user avatar
  • 2,882
2 votes
2 answers
2k views

How to change valid HTML tags that get rendered in ng-bind-html?

I have a text editor (textAngular) that I've modified to limit the number of valid HTML tags I can generate using that tool. Now, I want to only support a limited number of HTML elements (h3, h4, h5, ...
Andrew Allbright's user avatar

15 30 50 per page