fastmail / overture

Overture is a powerful JS library for building really slick web applications, with performance at, or surpassing, native apps.
MIT License
725 stars 25 forks source link

overture + angular/ionic #19

Closed smallbitt closed 7 years ago

smallbitt commented 7 years ago

Hi, is it possible to include overture inside a ionic/angular project?

I tried and I found out that there are scope problems and many errors occurs.

neilj commented 7 years ago

I don't know. I don't see why not, but I've never used ionic or angular, so I couldn't really comment. The only conflict I see would be if angular/ionic didn't like the prototype extensions, but there's not many of them.

smallbitt commented 7 years ago

Hi Neil, thanks for the answer, isn’t overture an alternative to angular? so I guess that it doesn’t work because they are in same level and they bave theyr own scope. Am I wrong?

Il giorno 17 feb 2017, alle ore 19:47, Neil Jenkins notifications@github.com ha scritto:

prototype extensions

neilj commented 7 years ago

It is an alternative, but that doesn't mean they can't coexist if you really want to. In general, it would probably be better to just pick one though, yes.

smallbitt commented 7 years ago

Hi Neil, as I try to include overture.js in my ionic project, in the console log I get this error:

I think all begins from here.. and I can’t understand how to solve it.

0 738976 error TypeError: document.body is null, http://localhost:8100/lib/overture/Overture.js, Line: 7312

Il giorno 17 feb 2017, alle ore 19:50, Neil Jenkins notifications@github.com ha scritto:

It is an alternative, but that doesn't mean they can't coexist if you really want to. In general, it would probably be better to just pick one though, yes.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/fastmail/overture/issues/19#issuecomment-280734202, or mute the thread https://github.com/notifications/unsubscribe-auth/ADVAjFv-JEgwxQhJo1aCuHeHTogkQ7vrks5rdevwgaJpZM4MEe3u.

neilj commented 7 years ago

If document.body is null, it doesn't look like you have a DOM, at least not fully formed. Try injecting Overture.jsat the end of your <body> tag.