Skip to content

bitovi-components/cc-hello-world

Repository files navigation

This is a simple example component. This is the documentation.

Installation

bower install --save bitovi/cc-hello-world

Usage

In your javascript:

import "bower_components/cc-hello-world/cc-hello-world";

In your template:

<cc-hello-world greeting="Hi"></cc-hello-world>

API

Attributes

  • {String} greeting="Hello" - The greeting
  • {String} target="World" - The target being greeted.
  • {Boolean} excited=false - Whether to be really excited

Methods

  • logGreeting() - Prints the greeting message into the console.

Events

  • greeted - Fired whenever a greeting is complete.

Content

  • select="" - Inserted under the greeting. Background color and styles changed.

Developing

  • npm install
  • grunt serve [--port PORT=8125]
  • Go to demo page

Testing

  • 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.

About

Example baseline can.Component

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published