小编Alb*_*rto的帖子

角度模态服务错误 - TypeError:modal.element.modal不是函数

我有角度模态服务的问题

我的app.js包括:

angular.module('myApp', ['myApp.test', 'ui.bootstrap','smart-table''angularModalService','ngRoute','myApp.productInsert',...
Run Code Online (Sandbox Code Playgroud)

test.js:

    'use strict';

angular.module('myApp.test', ['angularModalService'])



 .controller('ComplexController', [
  '$scope', '$element', 'title', 'close', 
  function($scope, $element, title, close) {

  $scope.name = null;
  $scope.age = null;
  $scope.title = title;

  //  This close function doesn't need to use jQuery or bootstrap, because
  //  the button has the 'data-dismiss' attribute.
  $scope.close = function() {
      close({
      name: $scope.name,
      age: $scope.age
    }, 500); // close, but give 500ms for bootstrap to animate
  };

  //  This cancel function must use the bootstrap, 'modal' …
Run Code Online (Sandbox Code Playgroud)

modal-dialog angularjs

6
推荐指数
2
解决办法
2万
查看次数

如何删除之前使用 ng add Schematic 命令添加的文件

我已经在我自己的库中实现了自定义原理图 Angular ng-add,它允许在新项目中安装我的库并对其他文件进行其他自定义编辑。

现在,如果我想卸载我的库并想返回我的更改,我该怎么办?我可以创建自定义原理图,首先删除我之前的编辑,然后删除我的库吗?

我尝试安装ng add @angular/material然后卸载它,我发现之前接触的文件没有被修改,但仍然被修改

angular

6
推荐指数
1
解决办法
6045
查看次数

标签 统计

angular ×1

angularjs ×1

modal-dialog ×1