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

Should load external content into a page using `source` and trigger `sourceLoaded` event #5

finnsson opened this Issue Aug 25, 2012 · 0 comments


None yet
1 participant

finnsson commented Aug 25, 2012

<div data-bind="page: {id: 'lorem', source: 'lorem.html .content', sourceLoaded: loremIsLoaded}"></div>

The source can contain a selector (see .content above) in order to extract a fragment on the site.
In the example above loremIsLoaded is a function that is triggered after lorem.html is loaded.

@finnsson finnsson closed this Aug 25, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment