md-form-builder
Version:
AngularJS - Material Design - Form Builder
24 lines (20 loc) • 446 B
JavaScript
var skipLogic = require('../utils/skipLogic')()
module.exports = function ($compile) {
return {
restrict: 'E',
replace: true,
templateUrl: 'mdfbDisplay.html',
scope: {
field: '=',
form: '=',
globals: '='
},
link: function (scope, elem, attrs) {
scope.field.show = true
if (scope.field.skipLogic) {
skipLogic.init(scope, elem, attrs, scope.field)
}
}
}
}