1 (function(angular
, $, _
) {
2 // Whitelist of all allowed properties of an af-fieldset
3 // (at least the ones we care about client-side - other's can be added for server-side processing and we'll just ignore them)
11 // Example usage: <af-form><af-entity name="Person" type="Contact" /> ... <fieldset af-fieldset="Person"> ... </fieldset></af-form>
12 angular
.module('af').component('afEntity', {
13 require
: {afForm
: '^afForm'},
15 controller: function() {
17 this.$onInit = function() {
18 var entity
= _
.pick(this, _
.keys(modelProps
));
20 this.afForm
.registerEntity(entity
);
25 })(angular
, CRM
.$, CRM
._
);