components icon indicating copy to clipboard operation
components copied to clipboard

autocomplete.html contains <template> causes warning in Angular 4 build

Open savatware opened this issue 9 years ago • 2 comments

Bug, feature request, or proposal:

Change request

What is the expected behavior?

Angular 4 compliant code without warnings

What is the current behavior?

The following warning is logged on ng build --prod

The <template> element is deprecated. Use <ng-template> instead ("[WARNING ->]<template><div class="mat-autocomplete-panel" role="listbox" [id]="id" [ngClass]="_getClassList()" #p"): ng:///D:/personal/dev/projects/kidora/code/client/main-app/node_modules/@angular/material/autocomplete/autocomplete.html@0:0

Which versions of Angular, Material, OS, browsers are affected?

Angular 4 Material 2.0.0-beta.2

savatware avatar Mar 24 '17 21:03 savatware

This has been fixed with SHA https://github.com/angular/material2/commit/cd55082a488e58a3f4948bba8e5d0a6771a57233. The warning will disappear with the next Material release.

devversion avatar Mar 24 '17 21:03 devversion

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.