Angularjs 角度ui.router显示引导模式(弹出)

Angularjs 角度ui.router显示引导模式(弹出),angularjs,angular-ui-router,angular-ui-bootstrap,Angularjs,Angular Ui Router,Angular Ui Bootstrap,有人知道带Boostrap的ui.route是如何工作的吗 .state('detalleProducto', { modal: true, templateUrl: 'views/productos/detalleProducto.html', controller: function($scope, $state) { $scope.close = function() {

有人知道带Boostrap的ui.route是如何工作的吗

        .state('detalleProducto', {
            modal: true,
            templateUrl: 'views/productos/detalleProducto.html',
            controller: function($scope, $state) {
                $scope.close = function() { $state.go('^'); }
            }
    });
HTML

它只是在相同的ui视图中显示页面


如何使弹出窗口工作?

为什么需要在模式中定义状态?您的用例是什么?我正在尝试使用一个引导模式弹出窗口,带有角度和内部加载HTML。我不知道我做得对不对。但是你想在《情态》上展示什么呢?大多数情况下,您不需要状态,ui引导模式已经为您提供了定义视图和控制器的API为什么需要在模式中定义状态?您的用例是什么?我正在尝试使用一个引导模式弹出窗口,带有角度和内部加载HTML。我不知道我做得对不对。但是你想在《情态》上展示什么呢?大多数情况下,您不需要状态,ui引导模式已经为您提供了定义视图和控制器的API
 <td class="text-center" nowrap>
 <a class="detalleProducto" href="#detalle_producto" ui-sref="detalleProducto" title="Detalle Producto">{{producto.code}}</a>
 </td>