A simple modal component built with soy templates and without any custom js code.
This example shows that having just a soy file is enough if you just need your component to be rendered and update itself when state changes. To see how to add more behavior to a component through a js file, check metal-examples-simple.
The code has lots of comments explaining how everything works.
This example was created using generator-metal for the boilerplate. Auto-generated gulp tasks are used for building/testing and other processes, since generator-metal uses gulp-metal automatically.
-
Install NodeJS >= v0.12.0, if you don't have it yet.
-
Install global dependencies:
[sudo] npm install -g gulp
- Install local dependencies:
npm install
- Build the code:
gulp build
- Open the demo at demos/index.html on your browser.