Instead of
<button ng-click="removeTask({{task.id}})">remove</button>
do this:
<button ng-click="removeTask(task.id)">remove</button>
Please see this fiddle:
More Related Contents:
- Angular ng-repeat Error “Duplicates in a repeater are not allowed.”
- ng-repeat :filter by single field
- Angular ng-repeat add bootstrap row every 3 or 4 cols
- AngularJS – How to structure a custom filter with ng-repeat to return items conditionally
- Custom sort function in ng-repeat
- Angular ng-repeat conditional wrap items in element (group items in ng-repeat)
- AngularJS : Custom filters and ng-repeat
- Ng-click doesn’t work inside ng-repeat
- AngularJS – how to override directive ngClick
- How/when to use ng-click to call a route?
- Angular ng-click event delegation
- Dynamic content added with AngularJS click event not working on the added content
- angularjs 1.6.0 (latest now) routes not working
- How to iterate over the keys and values with ng-repeat in AngularJS?
- Can you override specific templates in AngularUI Bootstrap?
- AngularJS – convert dates in controller
- AngularJS $location not changing the path
- Get value when selected ng-option changes
- How do I escape curly braces for display on page when using AngularJS?
- Custom form validation directive to compare two fields
- When not to use ‘track by $index’ in an AngularJS ng-repeat?
- Loading a mock JSON file within Karma+AngularJS test
- Enable/Disable Anchor Tags using AngularJS
- How do i use $on in a service in angular?
- Illegal use of ngTransclude directive in the template
- AngularJS $q. Deferred queue
- Understanding the transclude option of directive definition?
- angularjs text area character counter
- how to pass querystring in angular routes?
- Good way to dynamically open / close a popover (or tooltip) using angular, based on expression?