Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Angular bindings in template: how to? #7

Open
RodrigoBalest opened this issue Feb 10, 2016 · 4 comments
Open

Angular bindings in template: how to? #7

RodrigoBalest opened this issue Feb 10, 2016 · 4 comments

Comments

@RodrigoBalest
Copy link

Hi.

I'd like to set some angular bindings in the template, like ng-class or ng-click, referring the current slide, something like ng-click="markAsSelected(currentSlide)", or ng-class="{ 'selected': currentSlide.selected }".

Is it possible? How?

Thanks!

@m00s
Copy link
Owner

m00s commented Feb 15, 2016

Hi @RodrigoBalest, unfortunately this is not possible right now, but I'll eventually add it later if it turns to be a nice-to-have feature.

I leave this open to discuss about it!

@hirbod
Copy link

hirbod commented Feb 18, 2016

I would like to add a +1 to this, as I'm using this inside of a cordova app and also need to be able to use a ng-click on that.

@acromm
Copy link

acromm commented Jun 15, 2016

+1

A workaround to this is define in a custom template an ng-controller directive and the correspondant Controller. To pass data between controllers you can use a Service or the $rootScope.

@kiarov
Copy link

kiarov commented Jun 15, 2016

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants