Skip to content

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

@BjMemoryQ

Description

@BjMemoryQ

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': "):

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions