ngx-store
Version:
Angular decorators to automagically keep variables in HTML5 LocalStorage, SessionStorage, cookies; injectable services for managing and listening to data changes and a bit more.
13 lines • 550 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.addImportToRootModule = void 0;
const schematics_api_1 = require("@ngx-ext/schematics-api");
function addImportToRootModule() {
return (tree) => {
const rootModule = schematics_api_1.RootModule.getInstance(tree);
rootModule.addImport('WebStorageModule.forRoot()', 'ngx-store');
return rootModule.applyAllChanges();
};
}
exports.addImportToRootModule = addImportToRootModule;
//# sourceMappingURL=add-import-to-root-module.rule.js.map