Skip to content

Commit

Permalink
#32 Add Router
Browse files Browse the repository at this point in the history
  • Loading branch information
devjin0617 committed May 11, 2017
1 parent 47a61f6 commit 78652cb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lib/slideMenuItems.js
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,9 @@ module.exports = [
type: 'item',
icon: 'fa fa-circle-o',
name: 'Advanced Elements',
link: 'pages/forms/advanced.html'
router: {
name: 'AdvancedElements'
}
},
{
type: 'item',
Expand Down
6 changes: 6 additions & 0 deletions src/router/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import Modals from 'pages/ui-elements/Modals.vue'

// forms
import GeneralElements from 'pages/forms/GeneralElements.vue'
import AdvancedElements from 'pages/forms/AdvancedElements.vue'

Vue.use(Router)

Expand Down Expand Up @@ -111,6 +112,11 @@ export default new Router({
path: '/forms/general-elements',
name: 'GeneralElements',
component: GeneralElements
},
{
path: '/forms/advanced-elements',
name: 'AdvancedElements',
component: AdvancedElements
}
],
linkActiveClass: 'active'
Expand Down

0 comments on commit 78652cb

Please sign in to comment.