AngularJS – redirect from dynamicaly generated menu

I have problem with redirecting to another pages inside my app. I have dynamicaly generated menu (using devExtreme treeView component). I included angularjs and angular-route, created routing in MainApp.config and every redirect call return 404 error.