<template>
  <keep-alive include="hottestItemList">
    <component :is="selectComponent"></component>
  </keep-alive>
</template>

<script>
import HottestItemList from './hottest-item-list'
import ItemDetailView from './item-detail-view'
export default {
  data () {
    return {
      selectComponent: HottestItemList
    }
  },
  components: {
    HottestItemList,
    ItemDetailView
  },
  methods: {
    init () {
      this.selectComponent = HottestItemList
    }
  }
}
</script>

<style lang="scss" scoped>

</style>
