The code you’ve provided does not fire the event twice:
http://jsfiddle.net/kNL6E/ (click Save
)
Perhaps you included Angular twice? If you do that, you’ll get two alerts, demonstrated here:
More Related Contents:
- Delete firebase data older than 2 hours
- Working with select using AngularJS’s ng-options
- How do I set the value property in AngularJS’ ng-options?
- How to pass parameters using ui-sref in ui-router to controller
- How to set an iframe src attribute from a variable in AngularJS
- AngularJS 1.2 $injector:modulerr
- Break promise chain and call a function based on the step in the chain where it is broken (rejected)
- What is the difference between & vs @ and = in angularJS
- AngularJS communication between directives
- AngularJS toggle class using ng-class
- Export to xls using angularjs
- Issue with Android Hybid app to display remote image with Ionic framework?
- call function inside $sce.trustAsHtml() string in Angular js
- Angularjs: understanding a recursive directive
- Suites vs Specs Protractor
- Should we use jQuery with AngularJS? [closed]
- Complex nesting of partials and templates
- How to use ng-if with ng-repeat?
- AngularJS: ng-selected doesn’t show selected value [duplicate]
- How can I populate a select dropdown list from a JSON feed with AngularJS?
- Using array map to filter results with if conditional
- Mocking and Stubbing with protractor
- WebSocket connection failed: Error during WebSocket handshake: Unexpected response code: 400
- Two way binding not working in directive with transcluded scope
- angularjs form reset error
- Angular JS – Make service globally accessible from controllers and view
- FormData how to get or set boundary in multipart/form-data – Angular
- How to usemultiple Angular UI Bootstrap Datepicker in single form?
- How do I return data from a $http.get() inside a factory in angularjs
- How to create an Array with AngularJS’s ng-model