Angular/UI-Router - How Can I Update The URL Without Refreshing Everything?

后端 未结 2 1187
谎友^
谎友^ 2020-11-27 06:42

I\'m new to both Angular and the ui-router. When someone selects a model and my controller performs a standard SHOW method, I simply want to update the URL to include the m

2条回答
  •  轮回少年
    2020-11-27 07:37

    In essence, what you want to do is not to put the city code in the ui-view and/or not to use a template with this view. As a result, none of the DOM will get changed but the URL will. This is discussed more fully on Angular-ui.router: Update URL without view refresh

提交回复
热议问题