【发布时间】:2015-11-17 08:22:27
【问题描述】:
我有一个角度模块,它有一些配置代码,例如:
angular.module('qrApp').config(['$httpProvider', '$sceDelegateProvider', function ($httpProvider, $sceDelegateProvider) {
// configuring providers
}]);
qrApp.directive('fileModel', ['$parse', function ($parse) {
// custom directive here
}]);
现在我需要另一个新模块,它具有相同的配置和指令设置,不重复代码但具有某种“基本”模块的最佳方法是什么,因此两者都可以从它继承,因此具有相同的设置。谢谢。
【问题讨论】:
标签: angularjs inheritance config base