@codebakery/origami
Advanced tools
Changelog
2.0.0 (2018-03-09)
Origami v2 brings a lot of exciting changes! The library features a new build system architecture using polymer-webpack-loader. It patches the Angular CLI to inject this loader using the patch-cli.js
script.
Check out the README.md for more details on the new and improved build process.
emitChanges
directive has been removed. It was slow and not all that useful for two-way binding. It's much better to either use ironControl
and [(ngModel)]
or manually hook into the (property-changed)
event.Before
<paper-checkbox [(checked)]="isChecked" emitChanges></paper-checkbox>
After
<paper-checkbox
[checked]="isChecked"
(checked-changed)="isChecked = $event.detail.value"
></paper-checkbox>
<!-- or -->
<paper-checkbox [(ngModel)]="isChecked" ironControl></paper-checkbox>
ironControl
directive will no longer be automatically applied to elements. If you want to use Angular forms ([(ngModel)]
or formControlName
), you will need to add the ironControl
directive manually.Before
<paper-input [(ngModel)]="value"></paper-input>
After
<paper-input [(ngModel)]="value" ironConrol></paper-input>
<a name="1.3.4"></a>