Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

angular-lazy

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

angular-lazy

Utilities for projects based on the [Angular Lazy Generator](https://github.com/matoilic/generator-angular-lazy)

  • 0.3.0-beta.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

Angular Lazy

Dependency Status devDependency Status

Utilities for projects based on the Angular Lazy Generator.

Routing

The Angular Lazy module adds a state factory to the future states provider. The factory then takes care of loading your states of type load defined in states.json at runtime.

Component Loader Service

The componentLoader service allows us to load components manually in our code.

API

componentLoader

componentLoaderService.loadComponent(componentName) ⇒ Promise

Loads a component with the given name. It will automatically look for the component in the components folder. E.g. if you pass popup it will try to load the component from "components/popup/index".

ParamType
componentNameString

componentLoaderService.resolve(componentName, identifier) ⇒ Promise

Resolves an Angular injectable, e.g. service or constant, from the given component. If ensures that the component is loaded before trying to resolve the injectable.

ParamType
componentNameString
identifierString

System Service

The system service is a small wrapper around System so that import calls can be mocked in tests if needed.

API

system

systemService.import(path) ⇒ Promise

Imports a component from the given path, relative to the baseURL configured in SystemJS.

ParamType
pathString

License

Licensed under BSD 3-Clause.

FAQs

Package last updated on 08 Jun 2017

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc