pub fn new() -> Self {
        Self {
            data: Rc::new(RefCell::new(RouterData {
                current_history_index: 0,
                default_route: Routes::default(),
                history: Vec::new(),
                current_route: Routes::default(),
                base_url: Url::new(), // should replace with current ,maybe ?
                current_move: MoveStatus::Ready,
                sub_handle: None,
            })),
        }
    }
/// Create a new Router with no url, no history and current route is default
/// route.
Create a new Router with no url, no history and current route is default
route.
Create a new Router with no url no history and current route is default route .
pub fn new() -> Self {
        Self {
            data: Rc::new(RefCell::new(RouterData {
                current_history_index: 0,
                default_route: Routes::default(),
                history: Vec::new(),
                current_route: Routes::default(),
                base_url: Url::new(), // should replace with current ,maybe ?
                current_move: MoveStatus::Ready,
                sub_handle: None,
            })),
        }
    }
pub fn new ( ) -> Self { Self { data : Rc :: new ( RefCell :: new ( RouterData { current_history_index : 0 , default_route : Routes :: default ( ) , history : Vec :: new ( ) , current_route : Routes :: default ( ) , base_url : Url :: new ( ) , // should replace with current ,maybe ? current_move : MoveStatus :: Ready , sub_handle : None , } ) ) , } }
Create a new Router with no url, no history and current route is default
route.
Create a new Router with no url no history and current route is default route .