ng-cloak not working with md-autocomplete
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.
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 ?
Hi Thomas,
No need CodePen, it happens also on the demo page : https://material.angularjs.org/latest/demo/autocomplete
To reproduce this :
- refresh the page
- Concentrate yourself to see the {{}}
- 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}}
The issue is the same with the latest version from rawgit + angular 1.4.7.
@blootch - I visited the URL https://material.angularjs.org/latest/demo/autocomplete, refreshed, and catpured the image below (in which I cannot see any {{ }}:


@ThomasBurleson Do you see it on the gif ?
To reproduce :
- refresh the page
- Click on the input
- If you don't see at the first click, refresh again and click.

Is there any progress or any plans to fix this issue?
Would also like to know the status/plans regarding this issue.
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.
To prevent seeing {{ value }} use ng-bind in your custom template instead of curly braces notation.