Skip to content

Commit

Permalink
docs: Added a mixin to TS example (apertureless#593)
Browse files Browse the repository at this point in the history
  • Loading branch information
ekulabuhov authored Feb 26, 2020
1 parent 6462cdb commit 01ea4e1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,12 @@ or in TypeScript

```ts
// CommitChart.ts
import { Bar } from 'vue-chartjs';
import { Bar, mixins } from 'vue-chartjs';
import { Component } from 'vue-property-decorator';

@Component({
extends: Bar, // this is important to add the functionality to your component
mixins: [mixins.reactiveProp]
})
export default class CommitChart extends Vue<Bar> {
mounted () {
Expand Down

0 comments on commit 01ea4e1

Please sign in to comment.