Recently i worked on Yii2 project, where frontend framework was AngularJs. I encountered problem that i had to generate urls dinamically from frontend part. So, i have done extension, which allow to generate those urls.
I’d really appreciate you if you have a look.
You can find code on github. "dmirogin/yii2-js-urlmanager"