04.2018
dragosh, I build stuff
https://unsplash.com/photos/N2HtDFA-AgM
lite-server/live-server will just start the index.html
vue init simple simple-prj
whats included:
vue init webpack-simple wp-simple-prj
whats included:
vue init webpack wp-simple-prj
whats included:
vue init pwa pwa-prj
whats included:
vue-loader is a loader for webpack that can transform Vue components written in a specific format into a plain JavaScript module.
We can also use preprocessors such as Pug, Babel (with ES2015 modules), and Stylus for cleaner and more feature-rich components.
You could as easily use Bublé, TypeScript, SCSS, PostCSS - or whatever other preprocessors that help you be productive. If using Webpack with vue-loader, it also has first-class support for CSS Modules.
Navigation guards provided by vue-router are primarily used to guard navigations either by redirecting it or canceling it. There are a number of ways to hook into the route navigation process: globally, per-route, or in-component.
Params or query changes won't trigger enter/leave navigation guards. You can either watch the $route object to react to those changes, or use the beforeRouteUpdate in-component guard.
to: Route: the target Route Object being navigated to.
from: Route: the current route being navigated away from.
next: Function: this function must be called to resolve the hook.
next(), next(false),next('/'), next({ path: '/' }), next(error)(transfer to router.onError())
Fetching After Navigation: perform the navigation first, and fetch data in the incoming component's lifecycle hook.
Fetching Before Navigation: Fetch data before navigation in the route enter guard, and perform the navigation after data has been fetched.
vue.js
spring rest api
postgresql (docker)
@imhotepp
04.2018
Dragos Stefanescu