danhunsaker / angular-dynamic-forms

Build Forms in AngularJS From Nothing But JSON (please see Alternatives in the README)
MIT License
379 stars 140 forks source link

Dynamically compile html with dynamic-form directive in Internet explorer. #24

Open ankurbansal177 opened 10 years ago

ankurbansal177 commented 10 years ago

Unable to compile the dynamic-form directive in ie8. When i have this directive in my index file, this works fine, but when i compile this dynamically, $compile function gives this an error as it (ie8) does not support the directives with tags and the solution that angular suggests i.e. (document.createElement('dynamic-form') ) in index. This works fine for index but any solution when we have to do this for an html which is loaded on the go.

danhunsaker commented 10 years ago

Oh, IE. Why are you so stupid?

It's interesting that partials aren't covered by the fix in the index. I'll have to explore other fixes.

danhunsaker commented 10 years ago

The only thing I can think of at the moment that might help, here, is to include the IE fix boilerplate given in the README as a separate partial, and then load that in any app that needs to use the ngDynForms module - before loading partials with the <dynamic-form> tag. That might fix the problem.