Open GuenoleK opened 8 years ago
The main goal of this PR is to be used as documentation for all projects to upgrade their version of Focus core.
Backbone
, but we don't remove all our code inside the Router
to not break compatibility with the projects.
What was done here
Where to look, what to do now
setNavigationFunctions
which set thenavigate
,back
andstart
functionsimport history from 'focus-core/history'
, then thathistory.navigate('#search/advanced', true)
Now do thisimport {navigate} from 'focus-core/history'
, then thatnavigate('#search/advanced', true);
. It will be the same forback
andstart
(Forstart
, please look here : https://github.com/KleeGroup/focus-demo-app/blob/d726e8d20cb6e77fdafb0f2842fef0fb346828e4/app/application.js)button-back
and themenu
are now written in focus-components :