From 2f6a56c857703d4992155628a3f919d7e0e4f6eb Mon Sep 17 00:00:00 2001 From: PhilKunz Date: Fri, 14 Oct 2016 04:08:38 +0200 Subject: [PATCH] improve README --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 44edd6d..8789a6c 100644 --- a/README.md +++ b/README.md @@ -27,11 +27,11 @@ import { LazyModule } from 'smartsystem' import * as _myPlugin from 'myPlugin' // plugin does not get loaded here at runtime let myPluginLazy = new LazyModule('myPlugin') -let myPluginLazy.setLoader('npm') // sets the loader, defaults to npm anyway +myPluginLazy.setLoader('npm') // sets the loader, defaults to npm anyway import * as _anotherPlugin from 'anotherPlugin' // plugin does not get loaded here at runtime let anotherPluginLazy = new LazyModule('anotherPlugin') -let anotherPluginLazy.setLoader('systemjs') // sets the loader to systemjs +anotherPluginLazy.setLoader('systemjs') // sets the loader to systemjs myPluginLazy.whenLoaded.then(myPlugin => { /* do something with myPlugin.