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

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -