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

how would one go about integrating with angularjs? #47

Closed
etodanik opened this issue Apr 2, 2014 · 1 comment
Closed

how would one go about integrating with angularjs? #47

etodanik opened this issue Apr 2, 2014 · 1 comment
Labels

Comments

@etodanik
Copy link

etodanik commented Apr 2, 2014

How would one approach the integration of vex into an angularjs environment.

Specifically - I'm interested in cases where I need data binding. For instance- a prompt with a progress bar or something tied to a model.

@adamschwartz
Copy link
Contributor

When you open a vex you're returned the jQuery-wrapped .vex-content element for that vex ($vexContent). You can then use this element as you wish.

$vexContent = vex.open()
$vexContent.bind 'vexOpen', -> # Do something on open
$vexContent.bind 'vexClose', -> # Do something on open

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

No branches or pull requests

2 participants