Search code examples
node.jsangularwebpack-2typescript2.1

Template Parse Warnings in angular


After updating the packages to latest version. While Running the Application in browser i am facing the warning message in console:

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

Solution

  • How Angular used the <template> tag prevented for example using Polymer with Angular, therefore they changed Angular to use <ng-template> instead, to free <template> for "normal" usage.

    See also https://github.com/angular/angular/issues/11994