How to use the aurelia-metadata.Metadata.getOrCreateOwn function in aurelia-metadata

To help you get started, we’ve selected a few aurelia-metadata examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github aurelia / templating / dist / es6 / decorators.js View on Github external
var deco = function(target){
    var resource = Metadata.getOrCreateOwn(Metadata.resource, HtmlBehaviorResource, target);
    resource.hasDynamicOptions = true;
  };
github cmichaelgraham / aurelia-ts-port / dist / es6 / templating / decorators.js View on Github external
return function (target) {
        var resource = Metadata.getOrCreateOwn(Metadata.resource, HtmlBehaviorResource, target);
        resource.attributeName = name;
    };
}
github cmichaelgraham / aurelia-ts-port / aurelia-ts / templating / decorators.ts View on Github external
var deco = function(target){
    var resource = Metadata.getOrCreateOwn(Metadata.resource, HtmlBehaviorResource, target);
    resource.targetShadowDOM = true;
  };
github cmichaelgraham / aurelia-ts-port / aurelia-ts / templating / decorators.js View on Github external
var deco = function (target, key, descriptor) {
        var actualTarget = key ? target.constructor : target, resource = Metadata.getOrCreateOwn(Metadata.resource, HtmlBehaviorResource, actualTarget), prop;
        if (key) {
            nameOrConfigOrTarget = nameOrConfigOrTarget || {};
            nameOrConfigOrTarget.name = key;
        }
        prop = new BindableProperty(nameOrConfigOrTarget);
        return prop.registerWith(actualTarget, resource, descriptor);
    };
    if (!nameOrConfigOrTarget) {
github aurelia / templating / dist / es6 / decorators.js View on Github external
var deco = function(target, key, descriptor){
    var actualTarget = key ? target.constructor : target, //is it on a property or a class?
        resource = Metadata.getOrCreateOwn(Metadata.resource, HtmlBehaviorResource, actualTarget),
        prop;

    if(key){ //is it on a property or a class?
      nameOrConfigOrTarget = nameOrConfigOrTarget || {};
      nameOrConfigOrTarget.name = key;
    }

    prop = new BindableProperty(nameOrConfigOrTarget);
    return prop.registerWith(actualTarget, resource, descriptor);
  };
github aurelia / templating / dist / es6 / decorators.js View on Github external
var deco = function(target){
    var resource = Metadata.getOrCreateOwn(Metadata.resource, HtmlBehaviorResource, target);
    resource.liftsContent = true;
  };
github aurelia / templating / dist / es6 / decorators.js View on Github external
return function(target){
    var resource = Metadata.getOrCreateOwn(Metadata.resource, HtmlBehaviorResource, target);
    resource.elementName = name;
  }
}
github cmichaelgraham / aurelia-ts-port / dist / es6 / templating / decorators.js View on Github external
return function (target) {
        var resource = Metadata.getOrCreateOwn(Metadata.resource, HtmlBehaviorResource, target);
        resource.elementName = name;
    };
}
github cmichaelgraham / aurelia-ts-port / dist / es6 / templating / decorators.js View on Github external
return function (target) {
        var resource = Metadata.getOrCreateOwn(Metadata.resource, HtmlBehaviorResource, target);
        resource.childExpression = new ChildObserver(property, changeHandler, selector);
    };
}