Skip to content

Commit adbd395

Browse files
committed
change in template Label
1 parent 889a239 commit adbd395

File tree

2 files changed

+22
-20
lines changed

2 files changed

+22
-20
lines changed

dist/angular-formly-templates-foundation.js

Lines changed: 13 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/wrappers/index.js

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,19 @@
11
export default ngModule => {
22
ngModule.config(addWrappers);
33

4-
function addWrappers(formlyConfigProvider) {
4+
function addWrappers(formlyConfigProvider,formlyFoundationApiCheck) {
5+
var c = formlyFoundationApiCheck;
56
formlyConfigProvider.setWrapper([
67
{
78
name: 'templateLabel',
89
template: require('./label.html'),
9-
apiCheck: check => ({
10-
templateOptions: {
11-
label: check.string,
12-
required: check.bool.optional
13-
}
14-
})
10+
apiCheck: {
11+
templateOptions: c.shape({
12+
label: c.string,
13+
required: c.bool.optional
14+
})
15+
},
16+
apiCheckInstance: c
1517
},
1618
{name: 'templateHasError', template: require('./has-error.html')}
1719
]);

0 commit comments

Comments
 (0)