Skip to content

Commit 5264b9b

Browse files
committed
Update angular-formly to version 6+
1 parent 3d91cfe commit 5264b9b

3 files changed

Lines changed: 4 additions & 25 deletions

File tree

bower.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@
1212
"angular-touch": "1.3.12",
1313
"angular-ui-router": "0.2.10",
1414
"font-awesome": "4.3.0",
15-
"angular-formly": "1.0.0",
15+
"angular-formly": "6.24.23",
16+
"angular-formly-templates-bootstrap": "6.0.0",
17+
"api-check": "7.5.0",
1618
"angular-toasty": "0.1.8",
1719
"angular-file-upload": "v1.1.5",
1820
"angular-filter": "0.5.2",

client/app/js/app.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ angular.module('loopbackApp', [
1616
'oitozero.ngSweetAlert',
1717
'config',
1818
'formly',
19+
'formlyBootstrap',
1920
'lbServices',
2021
'monospaced.elastic',
2122
'ngAnimate',

client/app/modules/core/config/core.config.js

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -70,30 +70,6 @@ app.run(function($rootScope, Setting, gettextCatalog) {
7070

7171
});
7272

73-
app.config(function(formlyConfigProvider) {
74-
var templates = 'modules/core/views/elements/fields/';
75-
var formly = templates + 'formly-field-';
76-
var fields = [
77-
'checkbox',
78-
'email',
79-
'hidden',
80-
'number',
81-
'password',
82-
'radio',
83-
'select',
84-
'text',
85-
'textarea'
86-
];
87-
88-
angular.forEach(fields, function(val) {
89-
formlyConfigProvider.setTemplateUrl(val, formly + val + '.html');
90-
});
91-
92-
formlyConfigProvider.setTemplateUrl('date', templates + 'date.html');
93-
formlyConfigProvider.setTemplateUrl('time', templates + 'time.html');
94-
95-
});
96-
9773
app.config(['cfpLoadingBarProvider', function(cfpLoadingBarProvider) {
9874
cfpLoadingBarProvider.includeSpinner = false;
9975
}]);

0 commit comments

Comments
 (0)