Socket
Book a DemoInstallSign in
Socket

ng-browse

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ng-browse

unified browse service for angularjs projects

latest
Source
npmnpm
Version
0.0.1
Version published
Weekly downloads
2
100%
Maintainers
1
Weekly downloads
 
Created
Source

ng-browse Build Status

unified browse service for angularjs projects based on uiRouter and angular 1.x

Installation

  • Download last release or use npm Installation
  • Load angular, ui.router and ngBrowse in your index.html
  • add ngBrowse as dependency to your module declaration
  • inject $ngBrowse to your components (e.g. controller)

An example can found in the demo.html file in the repository.

$ngBrowse service functions

  • back(steps): goes a defined count of steps back in window.history (default: -1)
  • navigate(path, notInHistory): navigates to another url ($location) and can replace current history state
  • go(stateName, params, notInHistory): navigates to another state (ui.router) and can replace current history state
  • current(): return currenct state (ui.router)
  • params(): return current state params (ui.router)
  • location(): return current path/url ($location)
  • reload(fullPageReload): reloads current state (ui.router) or forces a full page reload

Keywords

angular

FAQs

Package last updated on 08 Dec 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts