Regularjs v0.3.0 released
v0.3.0 is the biggest release after v0.0.1 , we introduce serveral feature to help us using regularjs easily
- The default Syntax changed from
{{}}
to{}
now. but you can return to old syntax use
Regular.config({END: '}}', BEGIN: '{{'})
- Two-way filter is introduced . see reference for detail . It is used to control the flow from view back to model. you can combine it with
r-model
to realize some complex binding. - prevent the safe error. like nested undefined error. for example
{blog.title}
won't throw' read title of undefined 'error now. - Unified
{#include}
andtransclude
. see reference for detail. , you can use transclude content in{#include}
now 。 - add
component.$mute
to disable a component .$inject(false)
to remove component from document. you can usecomponent.$mute(true).$inject(false)
to compeletely remove a component from document now. - ... and fixing some bug