Skip to content

stikjs/stik-url

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#stik-url

##$url $url will help you interact with your url.

###Using it

stik.controller("YourCtrl", "YourAction", function($url){
  // https://my-website.com?someKey=someValue
  $url.queries(); // { someKey: "someValue" }

  // https://my-website.com#users
  $url.hash(); // "users"
  $url.hash("products");
  // https://my-website.com#products
});

Available methods:

  • baseUrl
  • relativeUrl
  • pathName
  • hash
  • locationHash
  • mainPath
  • queries