angular 正式注入模块无效
angular formly inject formly in module not working
您好:Formly 和 formlyBootstrap 没有注入我的模块
angular.module('myApp', ['formly', 'formlyBootstrap', function config(formlyConfig) {
formlyConfig.setType([
{
name: 'input',
template: '<input ng-model="options.templateOptions.description"/>'
}]);
}
]);
您的模块应该是,
angular.module('app', ['formly', 'formlyBootstrap'])
您好:Formly 和 formlyBootstrap 没有注入我的模块
angular.module('myApp', ['formly', 'formlyBootstrap', function config(formlyConfig) {
formlyConfig.setType([
{
name: 'input',
template: '<input ng-model="options.templateOptions.description"/>'
}]);
}
]);
您的模块应该是,
angular.module('app', ['formly', 'formlyBootstrap'])