1.0.0-alpha.1 • Published 2 years ago

@angular-package/component-loader v1.0.0-alpha.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

angular-package

The angular-package supports the development process of angular-based applications in varied ways through the thoughtful, reusable, easy-to-use small pieces of code called packages.

docs.angular-package.dev

Packages

PackageDescriptionStatus
callbackManages the callback function.npm version
change-detectionImproves application performance.npm version
component-loaderHandles dynamic loading components.npm version
coreCore features.npm version
errorManages an Error.npm version
nameThe name with prefix and suffix.npm version
preferencesPreferences, settings, options, configuration and setup in steps.npm version
prismPrism highlighter module.npm version
propertyHandles object properties.npm version
rangeThe range between a minimum and maximum.npm version
reactiveAutomatize the process of creating some rxjs features.npm version
storageThe storage of data under allowed names.npm version
tagAny tag with optional attributes.npm version
testingSupport for testing other packages.npm version
textText on the template with replaceable tags.npm version
typeCommon types, type guards, and type checkers.npm version
uiConfigurable user interface.npm version
wrapperWrap the text with the opening and closing chars.npm version

Click on the package name to visit its GitHub page.

angular-package/component-loader

Handles dynamic loading components.

Gitter Discord Twitter

npm version

GitHub issues GitHub forks GitHub stars GitHub license

GitHub sponsors Support me on Patreon

Documentation

For the detailed documentation go to https://component-loader.angular-package.dev

Table of contents

Skeleton

The package was generated by the library skeleton which was generated with Angular CLI 13 version. Copy package to the packages/component-loader folder of the library skeleton then run the commands below.

Code scaffolding

Run ng generate component component-name --project component-loader to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module --project component-loader.

Note: Don't forget to add --project component-loader or else it will be added to the default project in your angular.json file.

Build

Run ng build component-loader to build the package. The build artifacts will be stored in the dist/component-loader directory.

Publishing

After building your library with ng build component-loader, go to the dist folder cd dist/component-loader and run npm publish.

Running unit tests

Before the test can be performed install @angular-package/testing and @angular-package/type with command:

npm i @angular-package/testing @angular-package/type --no-save

Run ng test component-loader to execute the unit tests via Karma.

Installation

Install @angular-package/component-loader package with command:

npm i @angular-package/component-loader --save

Api

import {
  // Class.
  ComponentLoader,
  ComponentLoaderService,
  // Decorator.
  LoadComponent,
  // Interface.
  LoadComponentConfig
} from '@angular-package/component-loader';

Changelog

The changelog of this package is based on keep a changelog. To read it, click on the CHANGELOG.md link.

A changelog is a file which contains a curated, chronologically ordered list of notable changes for each version of a project. - keep a changelog

GIT

Commit

Versioning

Semantic Versioning 2.0.0

Given a version number MAJOR.MINOR.PATCH, increment the:

  • MAJOR version when you make incompatible API changes,
  • MINOR version when you add functionality in a backwards-compatible manner, and
  • PATCH version when you make backwards-compatible bug fixes.

Additional labels for pre-release and build metadata are available as extensions to the MAJOR.MINOR.PATCH format.

FAQ How should I deal with revisions in the 0.y.z initial development phase?

The simplest thing to do is start your initial development release at 0.1.0 and then increment the minor version for each subsequent release.

How do I know when to release 1.0.0?

If your software is being used in production, it should probably already be 1.0.0. If you have a stable API on which users have come to depend, you should be 1.0.0. If you’re worrying a lot about backwards compatibility, you should probably already be 1.0.0.

License

MIT © angular-package (license)