varvm=newVue({el:'#app',data:{view:'home'},methods:{changeView(viewName){this.view=viewName}},components:{home:{template:'<p>This is home.<p>'},posts:{template:'<p>This is posts.<p>'},archive:{template:'<p>This is archive.<p>'}}})