Angular bootstrap and routes functions