If you don’t mind not using ng-click
, it works OK. You can just rename it to something else and still read the attribute, while avoiding the click handler being triggered twice problem there is at the moment.
http://plnkr.co/edit/YWr6o2?p=preview
I think the problem is terminal
instructs other directives not to run. Data-binding with {{ }}
is just an alias for the ng-bind
directive, which is presumably cancelled by terminal
.
Related Contents:
- Controller not a function, got undefined, while defining controllers globally
- Dynamic form name attribute in Angularjs
- Can an angular directive pass arguments to functions in expressions specified in the directive’s attributes?
- How do I share $scope data between states in angularjs ui-router?
- Add directives from directive in AngularJS
- Angularjs Uncaught Error: [$injector:modulerr] when migrating to V1.3
- How to set an iframe src attribute from a variable in AngularJS
- Why is `replace` property deprecated in AngularJS directives? [duplicate]
- Losing scope when using ng-include
- How to set bootstrap navbar active class with Angular JS?
- How to require a controller in an angularjs directive
- How to do two-way filtering in AngularJS?
- How to make a directive update ng-model on jquery on event?
- AngularJS – Image “onload” event
- $watch an object
- AngularJS communication between directives
- How to set the id attribute of a HTML element dynamically with angularjs (1.x)?
- Extending AngularJs Directive
- Dynamic NG-Controller Name
- Removing # from url in Angularjs while having .run in routes
- Update parent scope variable in AngularJS
- What’s the difference/incompatibility between ng-model and ng-value?
- Angularjs: call other scope which in iframe
- ion-content and ion-footer have different $scope
- ng-selected not working in select element
- Angular JS: What is the need of the directive’s link function when we already had directive’s controller with scope?
- Angularjs: ‘controller as syntax’ and $watch
- $watch’ing for data changes in an Angular directive
- How to Create simple drag and Drop in angularjs
- Detect unsaved changes and alert user using angularjs
- angular directive ignore non-numeric input
- How to Unit Test Isolated Scope Directive in AngularJS
- Directive is being rendered before promise is resolved
- Working with $scope.$emit and $scope.$on
- Passing data between controllers in Angular JS?
- AngularJS : Why ng-bind is better than {{}} in angular?
- AngularJs “controller as” syntax – clarification?
- AngularJS : Difference between the $observe and $watch methods
- How to define two angular apps / modules in one page?
- Injecting a mock into an AngularJS service
- use $http inside custom provider in app config, angular.js
- angular ng-repeat in reverse
- ngRepeat Filter by deep property
- Reading Excel file using node.js
- Download text/csv content as files from server in Angular
- Access index of the parent ng-repeat from child ng-repeat
- How to use parameters within the filter in AngularJS?
- how to fix 404 warnings for images during karma unit testing
- angular.js ng-repeat for creating grid
- How to remove the hash # from the angularjs ng-route