{{ item.label }}
Search thousands of free JavaScript snippets that you can quickly copy and paste into your web pages. Get free JavaScript tutorials, references, code, menus, calendars, popup windows, games, and much more.
onsen
1. App.vue を書き換える
import HomePage from './components/HomePage'
import AboutPage from './components/AboutPage'
import MenuPage from './components/MenuPage'
export default {
data () {
return {
currentPage: 'HomePage'
}
},
components: { HomePage, AboutPage, MenuPage }
}
2 MenuPage.vue を書き換える
import HomePage from './components/HomePage'
import AboutPage from './components/AboutPage'
import MenuPage from './components/MenuPage'
export default {
data () {
return {
essentialLinks: [
{ label: 'HomePage', link: 'HomePage', icon: 'fa-book' },
{ label: 'AboutPage', link: 'AboutPage', icon: 'fa-book' }
]
}
},
methods: {
onClick (link) {
this.$parent.$parent.$parent.$parent.$data.currentPage = link
}
}
}
Subscribe to:
Post Comments (Atom)
China, Patriots, AI and Drone Swarms
If China trains it, they will come. ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ...
10 comments:
https://asmaloney.com/2015/06/code/clustering-markers-on-leaflet-maps/
https://codepen.io/NebHtesmar/pres/pjObNN
https://codepen.io/NebHtesmar/pres/pjObNN
http://jsfiddle.net/7vctfy0n/
http://jsfiddle.net/ZkC5M/221/
https://asmaloney.com/2015/06/code/clustering-markers-on-leaflet-maps/
https://codepen.io/NebHtesmar/pres/pjObNN
http://jsfiddle.net/Vsq4D/1/
http://www.brandsoftonline.com/rest-laravel-5-4-token-authentication/
https://www.taniarascia.com/real-world-examples-of-map-filter-and-reduce-in-javascript/
Post a Comment