lib/volt/models/url.rb
# Called when the state has changed and the url in the
# browser should be updated
# Called when an attribute changes to update the url
Called when the state has changed and the url in the
browser should be updated
Called when an attribute changes to update the url
Called when the state has changed and the url in the browser should be updated Called when an attribute changes to update the url
def update!
    if Volt.client?
      new_url = full_url()
      %x{
        if (document.location.href != new_url && history && history.pushState) {
          history.pushState(null, null, new_url);
        }
      }
    end
  end
def update! if Volt . client? new_url = full_url ( ) %x{ 
        if (document.location.href != new_url && history && history.pushState) {
          history.pushState(null, null, new_url);
        }
       } end end
Called when the state has changed and the url in the
browser should be updated
Called when an attribute changes to update the url
Called when the state has changed and the url in the browser should be updated Called when an attribute changes to update the url
# Push the new url if pushState is supported # TODO: add fragment fallback