futurepress / epub.js

Enhanced eBooks in the browser.
http://futurepress.org
Other
6.48k stars 1.11k forks source link

Possible Angular.js usage? #105

Closed hsdk123 closed 10 years ago

hsdk123 commented 10 years ago

I'm noticing that the epub.js implements things like custom hooks and injections. I've been using Angular.js for a while and feel that epub.js might be able to exploit it's features to quicken development in both the short and long run, especially it's data-binding features: http://angularjs.org/

Has Angular.js, or perhaps a similar framework been considered for usage before?

fchasen commented 10 years ago

The data-binding of Angular and directives are a great fit for epub.js. All the promises we create should be compatible with Angular's q promises.

The demo is likely going to remain frameworkless to illustrate how to use the library but we have a angular version of the reader at https://github.com/futurepress/epubjs-reader

It is a bit behind in updates but once v0.2 is merged in we should give it a refresh. Any help / pull requests on that would be greatly appreciated.

hsdk123 commented 10 years ago

Thanks for the reply, I'll go take a look :)

androidovshchik commented 6 years ago

Hi! i wrote a simple library for using epubjs with angular4+ https://github.com/androidovshchik/AngularEpubViewer i'll be glad to have feedback in issues or pull requests