这篇文章主要介绍了angular bootstrap timepicker TypeError提示的解决方法,具有一定的参考价值,感兴趣的小伙伴们可以参考一下
angular bootstrap timepicker TypeError: Cannot set property '$render' of undefined,如何解决?
Document {{mode}}
package.json
{ "name": "cynthia", "version": "1.0.0", "description": "", "main": "index.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, "author": "", "license": "ISC", "dependencies": { "angular-bootstrap-datetimepicker": "^1.1.4", "bootstrap": "^3.3.7" } }
把以上两个文件放到同一目录
npm install
运行index.html文件就可以看到效果了。
如果出现:TypeError: Cannot set property '$render' of undefined
说明angular的版本太低,这个版本要求至少在v1.2.30以上.
github传送门:https://github.com/raomojiuran/angular-bootstrap-datetimepicker
github:https://github.com/cynthiawupore
以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持html中文网。
以上就是angular bootstrap timepicker TypeError提示怎么办的详细内容,更多请关注0133技术站其它相关文章!