Skip to content

v1.0.0-alpha.2.0.0

Pre-release
Pre-release

Choose a tag to compare

@solkimicreb solkimicreb released this 03 Aug 14:07
· 191 commits to master since this release

Breaking changes

  • Existing special attributes renamed from nx-attr to simply attr
  • Bind syntax changed from nx-sync, nx-cync-on, nx-sync-mode and nx-sync-type to a single bind="mode on type".
  • Inline event handling syntax changed from nx-eventName to #eventName.
  • Renamed nx-ref, nx-ref-params and nx-ref-options to iref, iref-params and iref-options.
  • iref, iref-params and iref-options will only work on anchor elements from now on.

New

  • Improved data binding. Simpler syntax, more flexibility, dynamic binding options and custom bindable elements.
  • Improved attributes. Now any attribute can be prefixed by @ or $ similarly to interpolation.
  • Attribute shorthand syntax: @class="class" is equal to @class.
  • Improved inline event handlers. Now works with any events.
  • Added rate limiters, which can be used with event handlers.
  • Added the capitalize, lowercase, uppercase, json, slice, unit, date, datetime and time filters.
  • Added the debounce, delay, if, throttle rate limiters.
  • Anchor elements with an iref attribute gets a fake href attribute from NX, which helps web crawlers.
  • class and style attributes now accept an object as value
  • Added the show attribute, which toggles element visibility.

Fixed

  • Fixed an error hiding issue. Errors thrown inside developer code won't be hidden by NX.