In AngularJS directives are a way to teach HTML new tricks by extending the HTML vocabulary. Directives allow you to manage DOM elements in a declarative pattern, freeing you from low level DOM manipulation tasks.

learn more… | top users | synonyms

3
votes
0answers
127 views

AngularJS Outer ng-repeat not to register watches on inner ng-repeat

This is in relation with my question - Angular JS consumes more browser memory My problem here is I need nested ng-repeats and the nested ng-repeats consumes more memory because of more watches being ...
2
votes
0answers
29 views

AngularJS/UI ui-sortable does not have isolated scope?

While I was looking into an issue I was having with ng-repeats in the ui-sortable directive, which I later found was the same issue as this (https://github.com/angular-ui/ui-sortable/issues/2), I came ...
2
votes
0answers
50 views

Unit test directive inside a directive

I'm having troubles unit testing a directive that wraps the ng-grid component. I've written this punkler that shows the issue : http://plnkr.co/edit/HlB8Bt9M2TzsyM6XaDso?p=preview There is a lot of ...
2
votes
0answers
199 views

How to bind AngularJS Calendar to a REST resource using MVP

I’m failing to implement the binding between my REST resource and the AngluarJS calendar control. It seems that I’m missing something or just don’t get it logically since all components are working as ...
1
vote
0answers
23 views

promise-tracker in AngularJS

I have problems when using promise-tracker. What I want is to track a conversation. And part of my code is following: js: angular.module('myModule', ['ajoslin.promise-tracker']) ...
1
vote
0answers
18 views

AngularJS: how to invoke event handlers and detect bindings in tests

I want to write unit and e2e tests for various custom angularjs directives that add javascript event bindings to the elements they are attached to. In tests, it's easy enough to simulate click and ...
1
vote
0answers
61 views

Emebed Vimeo video using AngularJS directive

I have a partial HTML page in an AngularJS app that I'm trying to add a vimeo video to. This template has an image and play button that fades out on click to show the underlying iFrame. I also want ...
1
vote
0answers
101 views

UPDATE: Responsive images in AngularJS

Original Issue for Posterity (see updates) I've got an Angular.js website I'm building out to be responsive. I wanted to use separate resolution images for different browser widths as well. So, I ...
1
vote
0answers
57 views

Get ng-repeat complete in angular directive

In the code below, how does the angular directive 'myscroll' know what ng-repeat elements are being created? <myscroll> <div ng-repeat="a in arr">{{a}}</div> </myscroll> ...
1
vote
0answers
65 views

How to replace (or extend) vanila Angular directive?

I wonder is there a way to extend vanila directive by HTML that will be wrapped around input. Basically I want Angular to compile <input type='checkbox'> into <div ...
1
vote
0answers
48 views

$sanitize Custom Whitelist

The $sanitize service tells me that All safe tokens (from a whitelist) are then serialized back to properly escaped html string. I want to only display an even smaller subset of HTML (viz ...
1
vote
0answers
159 views

Creating a custom repeater with ng-repeat

I want to create a custom repeater directive and pass the expression to the ng-repeat inside of the directive template. The reason for this is to provide a cleaner interface in the html, as I am also ...
1
vote
0answers
70 views

Angular, implementing Filters with Pagination

So I'm playing around with angular and seem to have the gist of filtering, the problem that I have ran into is as follows: (Thanks to Eric Terpstra for posting this great tutorial!) Working with ...
1
vote
0answers
155 views

angularjs directive - element.html() breaks transclusion

Reference plunker If I call element.html() in my link function, the transcluded elements no longer compile. That really says it all, and the plunker will demonstrate, but here's the code: ...
1
vote
0answers
157 views

Angularjs load templates with directive

I have a directive that lets me insert a chat component. It loads a template as required. mod.directive('chat', function () { return { replace: true, templateUrl: '/tmpl/chat/chat', } }) ...

1 2 3 4 5 19
15 30 50 per page