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

2
votes
0answers
21 views

Cannot test a directive that removes an HTML node element during $compile time

Test: I have provided a full mock of the service function that I need for my directive. When running the test in debug mode(by adding a break point) the everything seems correct. Tried so far: ...
3
votes
2answers
28 views

Can an angular directive pass arguments to functions in expressions specified in the directive's attributes?

I have a form directive that uses a specified callback attribute with an isolate scope: scope: { callback: '&' } It sits inside an ng-repeat so the expression I pass in includes the id of the ...
0
votes
0answers
26 views

How to get the rendered html by AngularJS?

how to get the html rendered inside a div, after it is rendered and put it inside the scope of controller ? I am new to angular and though i know the basics of directives i cant seem to get the ...
2
votes
1answer
26 views

autoscroll angularjs doesn't seem to work

Hi I'm building a chatapp in angularjs and I want the chatbox to scroll down automatically. I'm using this example that I put in a directive: http://jsfiddle.net/atRkJ/ It works as it is but when I ...
0
votes
2answers
39 views

What is the opposite of `ngDisabled`?

In AnguarJS, is there a directive that is the opposite of ngDisabled? So instead of writing: <input ng-disabled="{expression}"> ... </input> I can write: <input ...
1
vote
0answers
22 views

Form Validation and fields added with $compile

I have a question regarding form validation. It is not working for me in the following scenario: I have a global form, inside the form dynamic fields are rendered using a directive. That directive ...
0
votes
0answers
21 views

Dynamic value in ng-minlength

I have a constant called Config which contains a task.minlength = 3 attribute. I'm appending the constant in the $rootScope: .run(function($rootScope, Config) { $rootScope.Config = Config; }) ...
-1
votes
0answers
12 views

Update ngModel on callback from FineUploader in Angular.js with ngModelController not working

i know this question have already been asked, but i have the exact same issues and the answer provided is not working for me. link : Update ngModel on callback from FineUploader in Angular.js I have a ...
0
votes
1answer
27 views

Angularjs custom directive highlight text after ng repeat has run

I want to create a directive that hightlights text( using jquery highlight plugin), after ngRepeat has rendered all its items. Consider following html: <div data-hightlight="" ...
0
votes
0answers
4 views

angular js directive for jquery plugin

I want to make an angularJs directive for jquery kwicks plugin, can anyone help in making angularJs directives for plugin. angular.module('').directive('kwicksHorizontal', function() { return ...
0
votes
1answer
26 views

Angularjs Directive - Isolated scope value is undefined

I am a newbie in angularjs. I am little confused about isolated scope in directives. I have the following code, HTML <!doctype html> <html ng-app="myApp"> <body ...
0
votes
0answers
18 views

Autoscroll down angularjs

Hi I'm creating a chat app with angularjs that autoscrolls down when a user messages another user. I'm not sure how to implement this as my chat window is a fixed ul element. I'm thinking I will ...
0
votes
1answer
34 views

Creating a new html page from controller

I have an input form page, that when the user submits, it updates that page with some tables of data. If the user likes what they see, they should be able to print a cleaned up (no header nav, footer ...
-1
votes
1answer
22 views

AngularJS Tree Directive Recursive Errors

I'm implementing angular-bootstrap-nav-tree directive in my application inside of a partial. When I do the most basic example I get: TypeError: Converting circular structure to JSON at ...
0
votes
0answers
4 views

$httpBackend prevents normal angular routing; how do I configure $httpBackend to allow normal routing behavior?

I need to load up $httpBackend in order to mock out $http server calls (which return JSON). I've defined my own mocks, but when I load up my angular app with $httpBackend and my own mocks, I get an ...

15 30 50 per page