Skip to content
This repository has been archived by the owner on Oct 7, 2020. It is now read-only.

Commit

Permalink
feat(button): Add native <a> element support with "href" attribute.
Browse files Browse the repository at this point in the history
Example: ```<a mdc-button [primary]="true" href="#">My Button</a>```
  • Loading branch information
trimox committed Jul 6, 2017
1 parent 23ddbc6 commit 1c6dabf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/button/button.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import { Ripple } from '.././ripple/ripple.directive';

@Component({
selector: 'button[mdc-button]',
selector: 'button[mdc-button], a[mdc-button]',
template: '<ng-content></ng-content>',
encapsulation: ViewEncapsulation.None
})
Expand Down

0 comments on commit 1c6dabf

Please sign in to comment.