我有角度模态服务的问题
我的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) 我已经在我自己的库中实现了自定义原理图 Angular ng-add,它允许在新项目中安装我的库并对其他文件进行其他自定义编辑。
现在,如果我想卸载我的库并想返回我的更改,我该怎么办?我可以创建自定义原理图,首先删除我之前的编辑,然后删除我的库吗?
我尝试安装ng add @angular/material然后卸载它,我发现之前接触的文件没有被修改,但仍然被修改