You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
briancavalier edited this page May 19, 2011
·
1 revision
Wire.js supports a wide variety of components from simple Javascript types, to object literals and Arrays, to AMD modules.
Simple Components
A component can be any native Javascript type:
Number
String
Boolean
Date
RegExp (via both new RegExp and literal // syntax)
Object literal
Array
NOTE: When declaring components in a wire spec using JSON rather than a Javascript object literal, you'll have to adhere to JSON syntax (duh!). For example, neither Date nor RegExp objects are valid JSON types, so you won't be able to declare those directly in a JSON wire spec.
AMD Modules
Wire.js supports using AMD modules as components. More Documentation Coming Soon