Skip to content

"Error: Unexpected call to method or property access." with ngInclude #15

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

Closed
gillbatesiii opened this issue Jun 12, 2015 · 0 comments
Closed

Comments

@gillbatesiii
Copy link

Hi, I'm using ng-include in my code like so

<ng-include src="phase1url" onload="phase1OnLoad()" ng-hide="roomsRatesInline || !phase1Loaded"></ng-include>

and I was getting this error

Error: Unexpected call to method or property access.

I managed to resolve it using this solution
angular/angular.js#1736

<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>`

Just thought I'd share this in case anyone runs into the same issue. If this is not the right place to do so let me know and I'll be happy to move it somewhere else.

@gillbatesiii gillbatesiii changed the title Error: Unexpected call to method or property access. "Error: Unexpected call to method or property access." with ngInclude Jun 12, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant