Url

Definition

function Url(base_url: String, callback: function) {
    return {
        url: base_url,
        callback
    }
}

Input

  • baseurl : the sub-url to which a view is binded and is mounted when the base_url is navigated

  • callback : a functional component (MUST) which is mounted if the url binded to this view is navigated

Returns an object

This function returns exactly what it takes just as an object, and therefore cannot be used as a component, but as a meta function that will provide some useful information to another component or meta function

Last updated