(function (factory) {
    if (typeof module === "object" && typeof module.exports === "object") {
        var v = factory(require, exports);
        if (v !== undefined) module.exports = v;
    }
    else if (typeof define === "function" && define.amd) {
        define(["require", "exports", "../core/BindableProperty", "./baseTypes", "./bindUrlParameter"], factory);
    }
})(function (require, exports) {
    "use strict";
    Object.defineProperty(exports, "__esModule", { value: true });
    const BindableProperty_1 = require("../core/BindableProperty");
    const baseTypes_1 = require("./baseTypes");
    const bindUrlParameter_1 = require("./bindUrlParameter");
    function BindableUrlParameter(name) {
        return (target, key, descriptor) => {
            baseTypes_1.registerInit(target, (vm) => {
                bindUrlParameter_1.default(vm, key, name);
            });
            return BindableProperty_1.BindableProperty(target, key);
        };
    }
    exports.default = BindableUrlParameter;
});
//# sourceMappingURL=BindableUrlParameter.js.map