All Questions
38 questions
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 ...
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
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() {
$...
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 ...
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 ...
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 ...
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
...
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 ...
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", [])
....
1
vote
1
answer
1k
views
Trying to get a string from Angular UI Modal via resolve object
I'm using the Angular UI modal directive: http://angular-ui.github.io/bootstrap/
I'm trying to pass a string from my modal open() function to my modal controller via the resolve object. I feel like I'...
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 ...
0
votes
2
answers
629
views
AngularJS : How can I dynamically reference a directive during ng-repeat?
Here is a plunkr showing what I am attempting
I have a tabset, which is defined as individual tabs, each with their own directive.
<div class="container" ng-controller='fruitController'>
...
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, ...
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 ...
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 ...