Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
@uirouter/core
Advanced tools
UI-Router Core: Framework agnostic, State-based routing for JavaScript Single Page Apps
UI-Router core provides client-side Single Page Application routing for JavaScript. This core is framework agnostic. It is used to build UI-Router for Angular 1, UI-Router for Angular 2, and UI-Router React.
Routing frameworks for SPAs update the browser's URL as the user navigates through the app. Conversely, this allows changes to the browser's URL to drive navigation through the app, thus allowing the user to create a bookmark to a location deep within the SPA.
UI-Router applications are modeled as a hierarchical tree of states. UI-Router provides a state machine to manage the transitions between those application states in a transaction-like manner.
UI-Router Core provides the following features:
admin.users
.users
int
, string
, date
, json
Get started using one of the existing UI-Router projects:
UI-Router core can be used implement a router for any web-based component framework. There are four basic things to build for a specific component framework:
A UIView is a component which acts as a viewport for another component, defined by a state. When the state is activated, the UIView should render the state's component.
A UISref
is a link (absolute, or relative) which activates a specific state and/or parameters.
When the UISref
is clicked, it should initiate a transition to the linked state.
When combined with a UISref
, a UISrefActive
toggles a CSS class on/off when its UISref
is active/inactive.
Implement framework specific bootstrap requirements, if any.
For example, UI-Router for Angular 1 and Angular 2 integrates with the ng1/ng2 Dependency Injection lifecycles.
On the other hand, UI-Router for React uses a simple JavaScript based bootstrap, i.e., new UIRouterReact().start();
.
This example doesn't have UIView, UISref, or anything like that. It bootstrap the router and naively manipulates the DOM when states are activated.
https://stackblitz.com/edit/ui-router-plain-javascript?file=index.js
Note: do not model your own router off this example, it is meant to show only the bare minimum.
Create an issue or contact us on Gitter.
FAQs
UI-Router Core: Framework agnostic, State-based routing for JavaScript Single Page Apps
The npm package @uirouter/core receives a total of 83,438 weekly downloads. As such, @uirouter/core popularity was classified as popular.
We found that @uirouter/core demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
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.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.