yarn install
yarn run serve
yarn run build
yarn run test
yarn run lint
Create Vue.js components, with structure similar to Angular components, with separate
*.ts
,*.html
and*.scss
files. The*.vue
files support is removed, as it is not practical for complex components.
import Vue from 'vue';
import { Component } from 'vue-property-decorator';
import { namespace } from 'vuex-class';
import { TopbarComponent } from '../elements/topbar';
import { SidebarLink } from './../../../models/types';
const Sidebar = namespace('sidebar');
@Component({
name: 'DashboardComponent',
template: require('./dashboard.component.html'),
style: require('./dashboard.component.scss'),
components: { TopbarComponent }
})
export default class DashboardComponent extends Vue {
@Sidebar.Getter
public isSidebarVisible!: boolean;
@Sidebar.Getter
public sidebarLinks!: SidebarLink[];
@Sidebar.Action
public toggleSidebarDisplay: any;
}
For detailed explanation on how things work, checkout the following guides:
- Vue.js Property Decorator
- Vuex : state management pattern + library for Vue.js applications
- Webpack
- Webpack loader for Vue.js components
- TypeScript loader for webpack
- BootsrapVue: implementations of Bootstrap V4 components and grid system available for Vue.js 2.5+