angularjs - Implement ngClick in angular-deckgrid? -
i trying implement ngclick event in angular-deckgrid. per documentation, have implemented same, in vain. click not being fired. using angular ui router states provide data view.
below code snippet
<button name="left" data-ng-click="mother.left()">left</button> <button name="right" data-ng-click="mother.right()">right</button>
in state of ui router,
sample.left=function(){ alert('left'); }
but alert never fired. doing wrong?
a small mistake has caused error. specify "mother.sample.left()" on data-ng-click. worked fine.
Comments
Post a Comment