0
votes
1answer
13 views

Passing a function to an isolated scope of a directive to be called within its controller?

I'm trying to call a function passed from a controller's scope into a directive via the "&" operation from the directive's controller. That method, however, is claimed by Angular to be undefined. ...
0
votes
1answer
15 views

Dependant ng-repeat in AngularJS

I have a following data structure coming from REST: scope.taglist = [ { name: "mylist", tags: ["tag1", "tag2", "tag3", ...]}, { name: "mylist2", tags: ["tag2.1", "tag2.2", "tag2.3", ...]} ...
0
votes
3answers
64 views

Why is my directive creating a new scope?

Below is a simple directive I wrote to insert a block of HTML stored locally in a script element. Here's how it's used: <body> <div my-partial="partial1"></div> </body> ...
0
votes
1answer
21 views

How do I get the clicked element's info (from the scope) in a given AngularJS directive?

Well, let me describe my original problem that's being aroused time to time. Consider the following product.html page: <div data-ng-controller="productsCtrl" data-ng-init="getProducts()" ...
0
votes
1answer
34 views

Angular $compile on scope with ng-repeat doesn't work

I have a directive that uses the $compile service to generate a template. It won't generate the select options using ng-options or ng-repeat, even though I clearly have the users array set in my ...
0
votes
2answers
28 views

AngularJs create scope from a model

I have a complex model structure (detailed below) and everytime I want to use the ng-model I have to do access the exact property like the following: user.communications.inGame.selected. I would ...
4
votes
2answers
37 views

Working with remove clicked element and scoping in angularjs

HTML <div ng-controller="BlogData" > <form ng-submit="removeTodo()"> <ul> <li ng-repeat="blog in bloges"> {{blog.name}} ...
0
votes
1answer
15 views

Create / Edit / View the same form with Angular

I am creating a slightly elaborated form with Angular. This form can be submitted, then modified or simply displayed (with everything in read-only for example). For now I have 3 templates with 3 ...
0
votes
2answers
32 views

pass parameters to several AngularJS directive instances?

Newbie question on angularJS, but don't see analogous case in tutorials having searched. How do I pass different parameters to individual div instances using the same directive definition? Here ...
0
votes
0answers
20 views

What's the best practice for nesting complex views with directives and ngRepeats in AngularJS?

I've got a project that I'm work on with AngularJS and Masonry. There's an issue with initializing Masonry, the grid is broken or fails to render properly - by using a timeout, helps preventing it ...
2
votes
2answers
32 views

Firefox sending multiple XHR requests when binding a controller function to the DOM

I have the following function in my controller: $scope.model.listApplicantStatuses = function(){ var statusChoices = jobsService.getApplicantStatuses(); if(statusChoices !== null) ...
1
vote
1answer
20 views

Angular.js How update scope in directive?

How can I update scope in directive? <div ng-controller="MyCtrl"> <p t></p> </div> My directive: var myModule = angular.module('myModule', []) .directive('t', ...
2
votes
1answer
41 views

AngularJS Directive not able to access isolate scope objects

I am trying to put some default values in my directive with Isolate scope. Basically, I need to do some DOM manipulations using the scope object when my directive is bound. Below is my code: ...
0
votes
2answers
59 views

AngularJS: Radio buttons do not work with Bootstrap 3

I have a radio button, which sets the value of True or False based on the value of transaction type The demo can be found here The problem is when I click on any of the radio button, the value of ...
0
votes
1answer
24 views

Asynchronous request and loading button with AngularJS

DOM manipulation within an Angular controller seems to be wrong. But this is not coming without a few headaches :) I have a button, and on ng-click, it will perform an asynchronous request in the ...

15 30 50 per page