Created
June 23, 2016 10:57
-
-
Save quyen91/a39d1494ea91098099a5059371d265fc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// view | |
<a href="" data-id="{{key}}" ng-click="addtocart($event)"> Add</a></td> | |
// Controller | |
$scope.addtocart = function(e){ | |
var bookid = $(e.target).data('id'); | |
alert(bookid); | |
// addtoCart.addtocart(bookid); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment