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
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
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
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
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
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
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
2 votes
2 answers
1k views

Angular scope variable available on html page but not controller?

I wonder if anyone could help me I have created a new directive so I can filter a dropdown list while loading data from a webServer. It all works fine, and I can write the values to the HTML page ...
Gillardo's user avatar
  • 9,838
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
1 vote
3 answers
809 views

Not able to load $http.get - JSON data in ui tabset child tabs

I tried to load a dropdown with the response got from http post. But its failing to load on child tabs. When i click next button from tab1. I make a post call and get a JSON back. Using the returned ...
venkatesh shanmuganathan's user avatar
1 vote
1 answer
1k views

Textarea does not work in Angular but Input works fine

I am trying to create a directive for text area, where I can show the number of characters remaining and clear the whole text area, I don't know why it does not work for textarea, but it works fine ...
Zama Mohammed's user avatar
1 vote
1 answer
2k views

Form Validation and disabled button

PLUNKER LINK In above problem i have three radio buttons which let the user pay balance,minimum amount and other amount.When user clicks on third radio button it opens up a div with input where user ...
future's user avatar
  • 352
1 vote
2 answers
746 views

Angular JS Root Scope

I am working with angular js at view layer. I need to use some global variable that will be used and modified by all the controllers method in my application: var app = angular.module('myWebservice',...
Ram's user avatar
  • 233
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
1 vote
0 answers
123 views

Firebase syncObject is showing redundant error in my Angular controller

I am building an app for a client who has, as one of their data sets a master list of all their members. I have the data coming in from Firebase and everything runs peachy, but it's not that DRY I am ...
Charles Smith's user avatar

15 30 50 per page