Tagged Questions
0
votes
1answer
35 views
Angular ng-repeat and jQuery plugin
I'm trying to turn this jQuery plugin into an Angular directive. I did the following:
define(['directives/directives'], function(directives){
directives.directive('vivifysortable', ['$rootScope', ...
0
votes
1answer
21 views
Angularjs : how to use key of object to retrieve value of another json object
i have an array of json objects
$scope.arrary = [{"a":"value"},{"b":"value2"},{"c":"value3"}];
$scope.secondObje = {"a":"this is updated value","b":"this is new value"}
i can iterate through ...
1
vote
2answers
286 views
Autocomplete Directive in ng-repeat loop Angular
I just have a question for the Angular heads.
I am fighting on a problem with an autocomplete custom directive.
My autocompletes events are loaded in a directive etc.
For some reasons I have to put ...
0
votes
0answers
21 views
How to use binding in directive?
In my ng-repeat I have a directive called update which takes the current index of repeat. How can I pass index value to my directive ?
This is how my markup looks like:
<ul>
<li ...
2
votes
2answers
122 views
Angularjs issues with compiler attribute in directive
I'm learning angularjs and I'm training how to build a reusable directive.
The problem is that it works with an array with 1 element but not with 2 or more.
The html tag is just: ...
1
vote
1answer
34 views
How to update $scope.items array order in response to user re-sorting the DOM array using Angular-UI ui-sortable directive
I am using ui-sortable directive (from angular-ui ) in the view
<ul ui-sortable>
<li ng-repeat="item in items" >
{{item.property1}}
{{item.property2}}
</li>
...
0
votes
1answer
23 views
AngularJS dynamic table with multiple headers based on hierarchical collections
I'm trying to create a table with two rows for header, based on a hierarchical collection. I've found that ng-repeat can't do that, and I'm trying to make the job with a directive and Angular.forEach.
...
1
vote
2answers
628 views
Error: No controller in directive
Folks,
I am an AngularJS newbie and I am trying to create a basic HTML hierarchy bound to a model hierarchy using Angular. My top-level module looks like this:
angular.module('fooApp', ...
1
vote
1answer
26 views
“Deep” angular application vs. “wide” angular application? AKA many components/directives vs. many controllers
Which is better: to split up an application into many different directives/components or into many different controllers?
Splitting up the application into many different directives/components ...
1
vote
1answer
40 views
AngularJS directive
I am adding the following div multiple times on a page.
<div class="box span6">
<div class="box-header">
<h2 class="custom"><i class="fa-icon-group" ...
0
votes
3answers
50 views
AngularJS directive inside ng-repeat is not playing nice
I'm trying to re-use a portion of my HTML view in multiple places. The portion I want to re-use is table cells in an HTML table. The problem is that my custom directive inside a ng-repeat is doing ...
2
votes
1answer
42 views
Angular Directive table rows issue
I am a beginner Angular programmer, but I am really close to understanding the directives.
I create a fiddle here, but I have never used fiddle before, and it is not quite rendering ...
the tr-row ...
0
votes
1answer
29 views
AngularJS Directive with no Template and Sharing the updates from parent scope
I have a very simple requirement where a directive is placed inside a ng-repeat in this I wanted to push down the changes to directive so it updates the UI. Meaning I want the value of Contact(not ...
0
votes
1answer
53 views
trying to use angular-ui-bootstrap radiobutton directive with ng-repeat in an angular project
So... I'm trying to generate a radiobutton group using ng-repeat:
<div class="btn-group yb-radiobuttons">
<button type="button" class="btn" ng-model="radioModel" btn-radio="'all'">All ...
0
votes
1answer
27 views
Angularjs : adding ng-repeat in a directive
i am new to angularjs and trying to write a directive. My code for directive is
Directives.directive("roleTemplate", function(){
return {
restrict : 'EA',
template : '<div ...