all angular boilerplate code in main.js