renderng page by block
Installation
npm install angular-lazy-render --save
Usage
Once you have installed, you can import in your Angular AppModule
:
;; ; ;
wrap your page with <lazy-page>
, and then block your page, wrap each page block with <lazy-block>
section-0{{title}} section-1 first render section-2 section-3
index
: mark the first rendering block, default 0
Development
To generate all *.js
, *.d.ts
and *.metadata.json
files:
$ npm run build
To lint all *.ts
files:
$ npm run lint
License
MIT © angular-lazy-render