This is a simple example component. This is the documentation.
bower install --save bitovi/cc-hello-world
In your javascript:
import "bower_components/cc-hello-world/cc-hello-world";
In your template:
<cc-hello-world greeting="Hi"></cc-hello-world>
{String} greeting="Hello"
- The greeting{String} target="World"
- The target being greeted.{Boolean} excited=false
- Whether to be really excited
logGreeting()
- Prints the greeting message into the console.
greeted
- Fired whenever a greeting is complete.
select=""
- Inserted under the greeting. Background color and styles changed.
npm install
grunt serve [--port PORT=8125]
- Go to demo page
npm install
grunt test
You can run the test server and visit /test.html
to run the tests in the
browser, as well. Tests currently use mocha.