我正在嘗試使用智能表。我按照這裏提供的說明:http://lorenzofox3.github.io/smart-table-website/ 所以根據這些說明,我需要做的就是運行bower install angular-smart-table
,然後添加模塊angular.module('myApp',['smart-table']
並添加到您的角度應用程序中。這裏是我的角度應用:'smart-table'模塊不可用
# pwd
/var/www/html
# cat meanVoyApp.js
var app = angular.module("meanVoyApp", ['smart-table']);
但現在當我打開我的標記我在瀏覽器控制檯中看到這些錯誤:
Uncaught Error: [$injector:modulerr] Failed to instantiate module meanVoyApp due to:
Error: [$injector:modulerr] Failed to instantiate module smart-table due to:
Error: [$injector:nomod] Module 'smart-table' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.
http://errors.angularjs.org/1.3.14/$injector/nomod?p0=smart-table
我沒拼錯,所以我想我「忘記」加載它。那麼我如何加載它?我怎麼知道它是否已經加載,而其他問題呢?
謝謝!
是的,工作。謝謝! –