我正在尝试添加' angularUtils.directives.dirPagination'模块到我的项目:
angular.module('ClientSideApp',['ngRoute','angularUtils.directives.dirPagination']).config( function($routeProvider) {
因此,控制台显示无法实例化模块angularUtils.directives.dirPagination,原因是:....
我还尝试在控制器文件中添加模块
angular.module('ClientSideApp',['angularUtils.directives.dirPagination']).controller('afficheCtrl', function($scope,$http,$location) {
这是同样的问题..
答案 0 :(得分:0)
您不必将依赖项添加到控制器文件中,只需确保您具有对 'angularUtils.directives.dirPagination'
<script src="dirPagination.js"></script>
<强> DEMO 强>