-
Notifications
You must be signed in to change notification settings - Fork 0
Component
Creeper edited this page Jun 30, 2016
·
1 revision
A typical component has structure below:
mycomponent/ # name should be component name
|---- component.json/.yml/.yaml # config and data
|---- x.css
|---- one.html # component state one
|---- two.html # component state two
|____ _xx.html # html starts with _ will be ignored
- Dir can be scanned to generate
component.yml
. And you can custom some data like state name. - Html file whose name starts with
_
will be ignored when scan. - Support other kind of component structure, but this one would be most suitable for prototyping.