angular 5: templateRef.createEmbeddedView is not a function

后端 未结 5 1182
忘掉有多难
忘掉有多难 2020-12-29 03:58

Here\'s the code I\'m trying to get to work (angular 5):

  import { Component, ViewChild, TemplateRef, ViewContainerRef } from \'@angular/core\';

@Component         


        
5条回答
  •  我在风中等你
    2020-12-29 04:20

    For me, the problem was using the same name for a variable in the component, and for a template in the HTML file.

提交回复
热议问题