An attempt to implement chip auto-completion using Angular material. Getting cannot read property "nextTick" from undefined

I watched a demonstration of autocomplete chips on Angular Material Demo Chips .
When deleting the "chip" I get an error:
Unable to read nextTick of undefined property.
Even the manual page causes an error. Do you have a solution to this problem?

+7
angularjs angular-material
source share
2 answers

@mark is correct if you need a quick workaround add this code to angular -material.js file

  /** @type {$mdUtil} */ this.$mdUtil = $mdUtil; 

Problem: $ mdUtils is passed to the constructor, but not stored on it.

for reference look at this as issue

The end that fixes this problem is a3b3e7b , which will be available in a future version.

+1
source share

According to this issue, in the Angular Material GitHub repository, a fix for this issue is available in HEAD and will be included in the upcoming 1.1.2 release.

+2
source share

All Articles