i am new to angularJS, and i am wonder if i can get the current selected card info in my controller, here is my scripts:
<div class="deckgrid" deckgrid source="books" cardTemplate="templates/deckgrid-card.html"></div>
and in templates/deckgrid-card.html file, i want to pass the current clicked card's info to my controller,
<a href="" data-ng-click="mother.showBookDetail({{card.title}})">
and in my controller, i have the function showBookDetail defined:
$scope.showBookDetail = function(title) { alert(title) };
and i can not get the value of card.title, but always the string of 'card.title'.
i am new to angularJS, and i am wonder if i can get the current selected card info in my controller, here is my scripts:
<div class="deckgrid" deckgrid source="books" cardTemplate="templates/deckgrid-card.html"></div>
and in templates/deckgrid-card.html file, i want to pass the current clicked card's info to my controller,
<a href="" data-ng-click="mother.showBookDetail({{card.title}})">
and in my controller, i have the function showBookDetail defined:
$scope.showBookDetail = function(title) { alert(title) };
and i can not get the value of card.title, but always the string of 'card.title'.
Thanks.