2016-12-16 90 views
0

我正在使用angularjs创建一个web应用程序,并且需要在我的web应用程序中添加twitter数字。无法读取angularjs中未定义的属性'init'

我插入angular-digits.js文件:

我包括在HTML <head>节本文件:

<script src="js/angular-digits.js"></script> 

调用这个文件app.js文件:

angular.module("sampleApp", ["firebase","atticoos.digits","ngRoute"]); 

它的工作与Firefox浏览器。

,但在Chrome浏览器中显示

"Uncaught TypeError: Cannot read property 'init' of undefined " 
+0

你可以在jsfiddle中重现吗? – devqon

+0

我想你是在多个地方添加一个js文件。请检查这个。 –

回答

0

今天有同样的问题,并散发出来,我们都忘了,包括这个脚本: https://cdn.digits.com/1/sdk.js没有这些数字不能正确设置!

希望可以帮到

相关问题