/common

A set of common utils for consuming Web APIs with Angular

Primary LanguageTypeScriptMIT LicenseMIT

logo Common utils for Web APIs

Part of Web APIs for Angular

npm version npm bundle size Travis (.org) Coveralls github

A set of common utils for consuming Web APIs with Angular

Tokens

  • WINDOW — provides access to global window object
  • NAVIGATOR — provides access to window.navigator object
  • USER_AGENT — provides access to window.navigator.userAgent string
  • PERFORMANCE — provides access to window.performance object
  • ANIMATION_FRAME — shared Observable based on window.requestAnimationFrame
  • CSS — provides access to window.CSS object or mock object if it's not available (i.e. in IE)
  • LOCATION — provides access to window.location object
  • LOCAL_STORAGE — provides access to window.localStorage object
  • SESSION_STORAGE — provides access to window.sessionStorage object
  • PAGE_VISIBILITY — wrapper for document.addEventListener('visibilityChange') api