Skip to content

Instantly share code, notes, and snippets.

@hsuanxyz
Created August 2, 2019 02:02
Show Gist options
  • Save hsuanxyz/7d2245cde946baeda0ef67700f7afd2a to your computer and use it in GitHub Desktop.
Save hsuanxyz/7d2245cde946baeda0ef67700f7afd2a to your computer and use it in GitHub Desktop.
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('plugin-manager'), require('@angular/core')) :
typeof define === 'function' && define.amd ? define('plugin-a', ['plugin-manager', '@angular/core'], factory) :
(global = global || self, global['plugin-a'] = factory(global.pluginManager, global.ng.core));
}(this, function (pluginManager, core) { 'use strict';
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
var PluginAComponent = /** @class */ (function () {
function PluginAComponent() {
}
/**
* @return {?}
*/
PluginAComponent.prototype.ngOnInit = /**
* @return {?}
*/
function () {
};
PluginAComponent.decorators = [
{ type: core.Component, args: [{
selector: 'lib-plugin-a',
template: "\n <p>\n plugin-a works!\n </p>\n "
}] }
];
/** @nocollapse */
PluginAComponent.ctorParameters = function () { return []; };
return PluginAComponent;
}());
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
var PluginAModule = /** @class */ (function () {
function PluginAModule() {
}
PluginAModule.decorators = [
{ type: core.NgModule, args: [{
declarations: [PluginAComponent],
imports: [],
exports: [PluginAComponent]
},] }
];
return PluginAModule;
}());
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
var publicApi = pluginManager.createPlugin({
name: 'plugin-a',
module: PluginAModule,
component: PluginAComponent
});
return publicApi;
}));
//# sourceMappingURL=plugin-a.umd.js.map
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment