Top "Angularjs-directive" questions

AngularJS directives are a way to teach HTML new tricks by extending the HTML vocabulary.

Automatically pass $event with ng-click?

I know that I can get access to the click event from ng-click if I pass in the $event object …

javascript angularjs angularjs-directive dom-events angularjs-ng-click
How to detect browser using angularjs?

I am new to angularjs. How can I detect userAgent in angularjs. Is it possible to use that in controller? …

angularjs angularjs-directive angularjs-scope angular-ui
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: '&' } …

javascript angularjs angularjs-directive angularjs-scope
How to require a controller in an angularjs directive

Can anyone tell me how to include a controller from one directive in another angularJS directive. for example I have …

javascript angularjs angularjs-directive
Angular Directive refresh on parameter change

I have an angular directive which is initialized like so: <conversation style="height:300px" type="convo" type-id="{{some_prop}}"&…

javascript angularjs angularjs-directive angularjs-scope
ng-change not working on a text input

I am new to angular js. In my code there is color picker initialized from a text field. User changes …

angularjs colors angularjs-directive angularjs-ng-change
How to use `replace` of directive definition?

In this document: http://docs.angularjs.org/guide/directive , it says that there is a replace configuration for directives: template …

angularjs angularjs-directive
Accessing attributes from an AngularJS directive

My AngularJS template contains some custom HTML syntax like: <su-label tooltip="{{field.su_documentation}}">{{field.su_name}}</…

angularjs angularjs-directive
Showing alert in angularjs when user leaves a page

I'm an angularjs new bee. I'm trying to write a validation which alerts the user when he tries to close …

javascript model-view-controller angularjs angularjs-directive
Controller not a function, got undefined, while defining controllers globally

I am writing a sample application using angularjs. i got an error mentioned below on chrome browser. Error is Error: […

javascript angularjs angularjs-directive angularjs-scope