How to use the aurelia-templating.ViewSlot function in aurelia-templating

To help you get started, we’ve selected a few aurelia-templating 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-contrib / aurelia-portal-attribute / dist / commonjs / portal.js View on Github external
: null).then(function () {
                    if (target === _this.currentTarget || oldTarget === unset) {
                        var viewSlot = _this.viewSlot = new aurelia_templating_1.ViewSlot(target, true);
                        viewSlot.attached();
                        viewSlot.add(view);
                        _this.removed = false;
                    }
                    return Promise.resolve().then(function () {
                        typeof _this.activated === 'function'
                            ? _this.activated.call(_this.callbackContext, target, view)
                            : null;
                    });
                });
            }
github aurelia-contrib / aurelia-portal-attribute / dist / es2015 / portal.js View on Github external
: null).then(function () {
                    if (target === _this.currentTarget || oldTarget === unset) {
                        var viewSlot = _this.viewSlot = new ViewSlot(target, true);
                        viewSlot.attached();
                        viewSlot.add(view);
                        _this.removed = false;
                    }
                    return Promise.resolve().then(function () {
                        typeof _this.activated === 'function'
                            ? _this.activated.call(_this.callbackContext, target, view)
                            : null;
                    });
                });
            }
github aurelia-contrib / aurelia-portal-attribute / dist / es2015 / index.js View on Github external
: null).then(() => {
                    if (target === this.currentTarget || oldTarget === unset) {
                        const viewSlot = this.viewSlot = new ViewSlot(target, true);
                        viewSlot.attached();
                        viewSlot.add(view);
                        this.removed = false;
                    }
                    return Promise.resolve().then(() => {
                        typeof this.activated === 'function'
                            ? this.activated.call(this.callbackContext, target, view)
                            : null;
                    });
                });
            }
github aurelia-contrib / aurelia-portal-attribute / dist / native-modules / index.js View on Github external
: null).then(function () {
                    if (target === _this.currentTarget || oldTarget === unset) {
                        var viewSlot = _this.viewSlot = new ViewSlot(target, true);
                        viewSlot.attached();
                        viewSlot.add(view);
                        _this.removed = false;
                    }
                    return Promise.resolve().then(function () {
                        typeof _this.activated === 'function'
                            ? _this.activated.call(_this.callbackContext, target, view)
                            : null;
                    });
                });
            }
github aurelia-contrib / aurelia-portal-attribute / dist / commonjs / index.js View on Github external
: null).then(function () {
                    if (target === _this.currentTarget || oldTarget === unset) {
                        var viewSlot = _this.viewSlot = new aureliaTemplating.ViewSlot(target, true);
                        viewSlot.attached();
                        viewSlot.add(view);
                        _this.removed = false;
                    }
                    return Promise.resolve().then(function () {
                        typeof _this.activated === 'function'
                            ? _this.activated.call(_this.callbackContext, target, view)
                            : null;
                    });
                });
            }

aurelia-templating

An extensible HTML templating engine supporting databinding, custom elements, attached behaviors and more.

MIT
Latest version published 2 years ago

Package Health Score

56 / 100
Full package analysis