ngHint plugin cannot be run as ngHint code was never included into the page

妖精的绣舞 提交于 2019-12-06 07:23:41

According to the source code of the plugin, it can only mean one thing: angular.hint is not defined, which means angular-hint is not installed.

In other words, your angular application should have ngHint.js loaded.

As an example and a demo, see protractor internal tests of the error message. It throws the error message with noNgHint.html, but works with index.html (see there is angular-hint js loaded).

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!