Skip to content
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

我这边引入项目里面会报错 可以帮忙看一下吗 #5

Open
BjMemoryQ opened this issue Apr 4, 2018 · 4 comments
Open

我这边引入项目里面会报错 可以帮忙看一下吗 #5

BjMemoryQ opened this issue Apr 4, 2018 · 4 comments

Comments

@BjMemoryQ
Copy link

Uncaught Error: Template parse errors:
Can't bind to 'ngOutletContext' since it isn't a known property of 'ng-template'.

  1. If 'ngOutletContext' is an Angular directive, then add 'CommonModule' to the '@NgModule.imports' of this component.
  2. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component. ("Divider">{{item.letter}}
    <ng-template [ngTemplateOutlet]="itemTemplate" [ERROR ->][ngOutletContext]="{'item': item, 'currentPageClass': currentPageClass}" *ngIf="!item.isDivider">
    "): ng:///ScrollModule/AlphaScroll.html@7:56
    Property binding ngOutletContext not used by any directive on an embedded template. Make sure that the property name is spelled correctly and all directives are listed in the "@NgModule.declarations". ("="scroll-letter-{{item.letter}}" *ngIf="item.isDivider">{{item.letter}}
    [ERROR ->]<ng-template [ngTemplateOutlet]="itemTemplate" [ngOutletContext]="{'item': item, 'currentPageClass': "):
@zwq8299174
Copy link
Owner

你angular版本是多少啊?

@BjMemoryQ
Copy link
Author

angular4

@BjMemoryQ
Copy link
Author

麻烦问一下 那是不是不能用了 这个是版本不兼容吗

@zwq8299174
Copy link
Owner

应该是不兼容 之前我升级了angular5

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

2 participants