0.0.3 • Published 7 years ago
gavant-ember-button-link v0.0.3
gavant-ember-button-link
A button component wrapper for {{link-to}}.
Installation
ember install gavant-ember-button-linkUsage
{{button-link "Some Link" "some.route" (query-params foo="bar") type="primary"}}{{#button-link "some.route" type="primary"}}
Some Link
{{/button-link}}Extends gavant-ember-button-basic, so it accepts all the same options, except:
actionbubbles
Also, when using the component in inline form, you CANNOT use the label option, you must pass in the label as the 1st positional component param, e.g. {{button-link "Label" "route"}}.
Contributing
Installation
git clone <repository-url>cd gavant-ember-button-linknpm install
Linting
npm run lint:jsnpm run lint:js -- --fix
Running tests
ember test– Runs the test suite on the current Ember versionember test --server– Runs the test suite in "watch mode"ember try:each– Runs the test suite against multiple Ember versions
Running the dummy application
ember serve- Visit the dummy application at http://localhost:4200.
For more information on using ember-cli, visit https://ember-cli.com/.
License
This project is licensed under the MIT License.