angular 中的模板解析警告
Template Parse Warnings in angular
将软件包更新到最新版本后。当 运行 浏览器中的应用程序时,我在控制台中遇到警告消息:
Template parse warnings:
The <template> element is deprecated. Use <ng-template> instead ("[WARNING ->]<template><div class="mat-autocomplete-panel" role="listbox" [id]="id" [ngClass]="_getClassList()" #p"): ng:///MdAutocompleteModule/MdAutocomplete.html@0:0
Angular 如何使用 <template>
标签阻止例如使用 Polymer 和 Angular,因此他们将 Angular 改为使用 <ng-template>
,以释放<template>
用于 "normal" 用法。
将软件包更新到最新版本后。当 运行 浏览器中的应用程序时,我在控制台中遇到警告消息:
Template parse warnings:
The <template> element is deprecated. Use <ng-template> instead ("[WARNING ->]<template><div class="mat-autocomplete-panel" role="listbox" [id]="id" [ngClass]="_getClassList()" #p"): ng:///MdAutocompleteModule/MdAutocomplete.html@0:0
Angular 如何使用 <template>
标签阻止例如使用 Polymer 和 Angular,因此他们将 Angular 改为使用 <ng-template>
,以释放<template>
用于 "normal" 用法。