javascript - JSON to Angular2+ Single Page Application creation -


i want produce angular js application based on json provided below -

{   name: 'app name',   pages: [      { name: 'home', url: '/',       layout: {           type:'htmlelement'          tag:'div',          attr: {},          children:[            {              type: 'angularcomponent',              tag:'hello-world',              attr: {},              children:[]            }          ]       }     },     ...page2 , page 3 etc...   ]  } 

this can angularjs1.x find difficult same using angular2.

i don't want rely on angular-cli this. want every thing in javascript not typescript because code generation pages in typescript can cause problem. angular2 compilation process takes time, preview have wait more 10 seconds in angularjs immediate. size of application huge i.e 3mb+ in case.

any suggestion , recommendation on this.

there many options :

  • stay on angularjs (= 1.x)
  • create separate library (maybe without using angularjs or angular)
  • optimize code design : create sub modules, compile them separately may bring other issues
  • optimize environment : switch ssd or ramdisk

Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -