gavant-ember-button-link
A button component wrapper for {{link-to}}
.
Installation
ember install @gavant/ember-button-link
Usage
{{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:
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-link
npm install
Linting
npm run lint:js
npm 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
For more information on using ember-cli, visit https://ember-cli.com/.
License
This project is licensed under the MIT License.