conditional apply css from js
Page1's css is now alive.
Page2's css is now alive.
{ '.page1, .page2':{ display:'none', border:'1px dashed grey' }, '.page1':{ $test: getPage, display: 'block', p:{ color:'red' } }, '.page2':{ $test: getPage, display: 'block', p:{ color:'blue' } } }
The Result CSS:
The CSSOM: