Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

IE8+9 Error with <ng-include> not <div ng-include ></div> #1736

Closed
tonypee opened this issue Dec 20, 2012 · 1 comment
Closed

IE8+9 Error with <ng-include> not <div ng-include ></div> #1736

tonypee opened this issue Dec 20, 2012 · 1 comment

Comments

@tonypee
Copy link

tonypee commented Dec 20, 2012

when including templates in this fashion i get the error:
<ng-include src="'partials/pages/events.nav.html'" ></ng-include></code>

its fine like this:
<div ng-include src="'partials/pages/events.nav.html'" ></div></code>

Error:

Error: Unexpected call to method or property access.

@pkozlowski-opensource
Copy link
Member

@tonypee did you go over the http://docs.angularjs.org/guide/ie
and applied all the recommendations, especially this one:

<head>
    <!--[if lte IE 8]>
      <script>
        document.createElement('ng-include');
        document.createElement('ng-pluralize');
        document.createElement('ng-view');

        // Optionally these for CSS
        document.createElement('ng:include');
        document.createElement('ng:pluralize');
        document.createElement('ng:view');
      </script>
    <![endif]-->
  </head>

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

No branches or pull requests

2 participants