ember-cli-formatter
v0.0.6
Published
An input formatter ember-cli component for ember using http://firstopinion.github.io/formatter.js/index.html
Downloads
1
Readme
Ember-cli-formatter
An input formatter ember-cli component for ember using formatter.js.
Usage
npm install --save ember-cli-formatter
ember g ember-cli-formatter
Format phone number
{{input-formatted pattern="({{999}}) {{999}}-{{999}}"
persistent="true"
class="validate"
style="background-color: pink;"
placeholder="1234567890"
id="my-input"}}
Demo
Clone this repo and run the app:
$ npm install -g ember-cli
$ git clone [email protected]:clearbanc/ember-cli-formatter
$ cd ember-cli-formatter
# install dependencies
$ npm install && bower install
$ ember g ember-cli-formatter
# fire up local server
$ ember serve
Running Tests
ember test
ember test --server
Building
ember build
For more information on using ember-cli, visit http://www.ember-cli.com/.