1. Use . to pass access_token (instead of global variable); 2. Put NotebooksCtrl and NotesCtrl in ng-if