Skip to content

Instantly share code, notes, and snippets.

@rwdcreative
rwdcreative / simple-ui-routing.js
Last active February 10, 2017 17:17
Simple UI-Router
// Default Path
var defaultPath = 'home'
// Set Default State
history.pushState(null, null, '#/' + defaultPath);
// Custom UI Routing
function uiRouter(){
// Create URL Path Array