带有Bootstrap的Angular-Laravel,事件被破坏了

时间:2014-06-17 08:53:59

标签: angularjs twitter-bootstrap laravel-4

我正在尝试使用我的laravel&角项目twitter bootsrap捆绑但似乎被破坏了。点击活动我得到了

Error: [$compile:tpload] Failed to load template: template/modal/window.html

Bootstrap包含在凉亭中

Init Angular

var konfigurator = angular.module('konfiguratorApp', [
    'ngRoute',
    'konfiguratorApp.filters',
    'konfiguratorApp.services',
    'konfiguratorApp.directives',
    'konfiguratorApp.controllers',
    'ui.bootstrap',
    'ngSanitize'
]

控制器

function Events($scope, $modal, $log) {
    $scope.visible = true;
    $scope.items = ['item1', 'item2', 'item3'];
    $scope.modalEdit = function() {
        var modalInstance = $modal.open({
            templateUrl: '/edit',
            controller: ModalInstanceCtrl,
            resolve: {
                items: function() {
                    return $scope.items;
                }
            }
        });
    };
    $scope.Off = function() {
        alert('Off');
    };
    $scope.toggle = function() {
        $scope.visible = !$scope.visible;
    };
}

var ModalInstanceCtrl = function ($scope, $modalInstance, items) {
  $scope.items = items;
  $scope.selected = {
    item: $scope.items[0]
  };

  $scope.ok = function () {
    $modalInstance.close($scope.selected.item);
  };

  $scope.cancel = function () {
    $modalInstance.dismiss('cancel');
  };
};

没有丰富的经验,我试图弄清楚引导模板应该出现在哪里。

更新

从github下载源工作似乎是bower安装版本的问题

0 个答案:

没有答案