material icon indicating copy to clipboard operation
material copied to clipboard

ng-cloak not working with md-autocomplete

Open NicolasBlois opened this issue 11 years ago • 10 comments

Hi,

ng-cloak doesn't work on md-autocomplete results. Applied with attibute or CSS, both doesn't work. I still see {{value}}.

More informations :

  • It only happens on the first load.
  • Angular material 0.11.2
  • Angular 1.4.4
  • Angular + angular material loaded in head.
  • CSS rule for ng-cloak is added to the app css file.

NicolasBlois avatar Oct 12 '15 16:10 NicolasBlois

Please provide a CodePen demo.

To expedite resolution, please always test with the latest versions:

  • Angular Material HEAD
  • Bower Install - https://github.com/angular/bower-material/blob/master/angular-material.js
  • Bower Install - https://github.com/angular/bower-material/blob/master/angular-material.css
  • RAWGIT - https://rawgit.com/angular/bower-material/master/angular-material.js
  • RAWGIT - https://rawgit.com/angular/bower-material/master/angular-material.css
  • AngularJS Latest Release versions:
    • Angular 1.3.19 (or greater)
    • Angular 1.4.6 (or greater).

Can you confirm the issue still exists with the above versions ?

ThomasBurleson avatar Oct 12 '15 23:10 ThomasBurleson

Hi Thomas,

No need CodePen, it happens also on the demo page : https://material.angularjs.org/latest/demo/autocomplete

To reproduce this :

  1. refresh the page
  2. Concentrate yourself to see the {{}}
  3. Click on the first input (with states)

Note : It only happens with the first click. With second click it is ok. So, to reproduce again, refresh the page.

Do you see it ? It happens also with ng-cloak applied to the element containing the {{value}}

NicolasBlois avatar Oct 13 '15 17:10 NicolasBlois

The issue is the same with the latest version from rawgit + angular 1.4.7.

NicolasBlois avatar Oct 13 '15 20:10 NicolasBlois

@blootch - I visited the URL https://material.angularjs.org/latest/demo/autocomplete, refreshed, and catpured the image below (in which I cannot see any {{ }}:

screen shot 2015-10-13 at 4 04 30 pm

ThomasBurleson avatar Oct 13 '15 21:10 ThomasBurleson

screen shot 2015-10-13 at 4 09 35 pm

ThomasBurleson avatar Oct 13 '15 21:10 ThomasBurleson

@ThomasBurleson Do you see it on the gif ?

To reproduce :

  1. refresh the page
  2. Click on the input
  3. If you don't see at the first click, refresh again and click.

telechargement

NicolasBlois avatar Oct 13 '15 23:10 NicolasBlois

Is there any progress or any plans to fix this issue?

friedolinfoerder avatar Dec 01 '15 16:12 friedolinfoerder

Would also like to know the status/plans regarding this issue.

danielbogart avatar Dec 08 '15 21:12 danielbogart

Faced the same issue (Angular 1.5, Material 1.0.1). Temporary hacked it with the fade-in css animation for the custom template container.

alyrik avatar Dec 20 '15 15:12 alyrik

To prevent seeing {{ value }} use ng-bind in your custom template instead of curly braces notation.

alyrik avatar Feb 12 '16 20:02 alyrik