Trait

io.scalajs.npm.angularjs

Location

Related Doc: package angularjs

Permalink

trait Location extends Object

Location - The $location service parses the URL in the browser address bar (based on the window.location) and makes the URL available to your application.

Annotations
@RawJSType() @native()
See also

https://docs.angularjs.org/api/ng/service/$location

Linear Supertypes
Object, Any, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Location
  2. Object
  3. Any
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def absUrl(): String

    Permalink

    This method is getter only.

    This method is getter only.

    returns

    full url representation with all segments encoded according to rules specified in RFC 3986.

  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  9. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  11. def hasOwnProperty(v: String): Boolean

    Permalink
    Definition Classes
    Object
  12. def hash(hash: String): Unit

    Permalink

    This method is getter / setter.

    This method is getter / setter. Changes hash fragment when called with parameter and return $location.

    hash

    New hash fragment

    returns

    hash fragment when called without any parameter.

  13. def hash(): String

    Permalink

    This method is getter / setter.

    This method is getter / setter. Changes hash fragment when called with parameter and return $location.

    returns

    hash fragment when called without any parameter.

  14. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  15. def host(): String

    Permalink

    This method is getter only.

    This method is getter only. Note: compared to the non-angular version location.host which returns hostname:port, this returns the hostname portion only.

    returns

    host of current url.

  16. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  17. def isPrototypeOf(v: Object): Boolean

    Permalink
    Definition Classes
    Object
  18. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  19. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  20. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  21. def path(path: String): Location.this.type

    Permalink

    This method is setter.

    This method is setter.

    path

    New path

    returns

    a reference to self

  22. def path(): String

    Permalink

    This method is getter.

    This method is getter.

    returns

    path of current url when called without any parameter.

  23. def port(): Int

    Permalink

    This method is getter only.

    This method is getter only.

    returns

    port of current url.

  24. def propertyIsEnumerable(v: String): Boolean

    Permalink
    Definition Classes
    Object
  25. def protocol(): String

    Permalink

    This method is getter only.

    This method is getter only.

    returns

    protocol of current url.

  26. def replace(): Unit

    Permalink

    If called, all changes to $location during current $digest will be replacing current history record, instead of adding new one.

  27. def search(search: Any = js.native, paramValue: Any = js.native): Object

    Permalink

    This method is getter / setter.

    This method is getter / setter. Return search part (as object) of current url when called without any parameter. Change search part when called with parameter and return $location.

    search

    New search params - string or hash object. When called with a single argument the method acts as a setter, setting the search component of $location to the specified value. If the argument is a hash object containing an array of values, these values will be encoded as duplicate search parameters in the url.

    paramValue

    If search is a string or number, then paramValue will override only a single search property. If paramValue is an array, it will override the property of the search component of $location specified via the first argument. If paramValue is null, the property specified via the first argument will be deleted. If paramValue is true, the property specified via the first argument will be added with no value nor trailing equal sign.

    returns

    If called with no arguments returns the parsed search object. If called with one or more arguments returns $location object itself.

  28. def state(newState: Any = js.native): Object

    Permalink

    This method is getter / setter.

    This method is getter / setter. Change the history state object when called with one parameter and return $location. The state object is later passed to pushState or replaceState.

    newState

    State object for pushState or replaceState

    returns

    the history state object when called without any parameter.

  29. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  30. def toLocaleString(): String

    Permalink
    Definition Classes
    Object
  31. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  32. def url(): String

    Permalink

    This method is getter.

    This method is getter.

    returns

    url (e.g. /path?a=b#hash) when called without any parameter.

  33. def url(url: String): Unit

    Permalink

    This method is setter.

    This method is setter.

    url

    New url without base prefix (e.g. /path?a=b#hash)

    returns

    url (e.g. /path?a=b#hash) when called without any parameter.

  34. def valueOf(): Any

    Permalink
    Definition Classes
    Object
  35. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  36. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  37. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Object

Inherited from Any

Inherited from AnyRef

Inherited from Any

Ungrouped