Tagged Questions
0
votes
1answer
83 views
AngularJS - accessing directive scope
So, I'm looking to use ui.bootstrap.tooltip to appear when an element in a form is invalid.
I'm using a directive to do this - it's a bit ugly, but it works. Except for one thing - the controller ...
0
votes
1answer
35 views
Two-way data-binding with ng-grid?
How do I get two-way data-binding with ng-grid?
I am working from their pagination example, and have figured out how factory and broadcast work; and have thus successfully loaded new versions of my ...
0
votes
1answer
204 views
AngularJS creating additional scopes on opening modal dialog multiple times
I have a modal with angular-UI bootstrap. Because I've a dozen of different forms I want to show in the modal, I'm using a ng-include directive inside the modal. The src attribute is changing ...
0
votes
2answers
111 views
How to dynamically disable ui-sortable directive in angular-ui
I am using angular-ui for sortable using ui-sortable directive. Is it possible to dynamically enable/disable sortable functionality based on the scope state? So I need to have a button which changes ...
0
votes
2answers
230 views
Angular JS: Handling different UI components from each views repeated using ng-repeat when the view look-feel are same
Apologies for the big Title, I couldn't come up with any thing better. Let me explain the issue I am having.
I have to render three cards where each of them share same look-feel, means each of them ...
0
votes
2answers
502 views
How to access an array in AngularJS controller populated by $resource get()?
I can not access an array in the AngularJS controller but it works in the view.
In the controller: .results returns undefined
function TwitterCtrl($scope, $resource){
$scope.twitter = ...
1
vote
1answer
125 views
Update Specific $scope by ID after the save success AngularJS
In this case does anyone know how to update $scope.list with specific "id" with the code below after it successfully sent a post request to Recheck services it query again and reload all the DOM. I ...
5
votes
3answers
568 views
angular-bootstrap (tabs): data binding works only one-way
I prepared a little fiddle and boiled it down to the minimum:
http://jsfiddle.net/lpeterse/NdhjD/4/
<script type="text/javascript">
angular.module('app', ['ui.bootstrap']);
function ...
24
votes
3answers
2k views
When writing a directive, how do I decide if a need no new scope, a new child scope, or a new isolate scope?
I'm looking for some guidelines that one can use to help determine which type of scope to use when writing a new directive. Ideally, I'd like something similar to a flowchart that walks me though a ...