$locationProvider

Improve this Doc View Source $locationProvider

  1. $location
  2. provider in module ng

Use the $locationProvider to configure how the application deep linking paths are stored.

Methods

  • hashPrefix([prefix]);

    Parameters

    Param Type Details
    prefix
    (optional)
    string

    Prefix for hash part (containing path and search)

    Returns

    *

    current value if used as getter or itself (chaining) if used as setter

  • html5Mode([mode]);

    Parameters

    Param Type Details
    mode
    (optional)
    boolean

    Use HTML5 strategy if available.

    Returns

    *

    current value if used as getter or itself (chaining) if used as setter

© 2010–2016 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://code.angularjs.org/1.2.32/docs/api/ng/provider/$locationProvider

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部