Skip to content

Repository files navigation

ng-xtend logo Examples

This mono-repository provides multiple examples of usage of ng-xtend framework. Each example is a separate package containing an Angular application, adding a specific use case over the previous one.

Description

The table below describes the different examples:

ExampleDescriptionxt-render tagPlugin typePlugin LoadingType systemStore
basic-exampleDisplays any object in various format in a generic wayYesDefaultStaticNoNo
typed-exampleBy describing the type handled, ng-xtend supports more use casesYesDefaultStaticYesNo
plugin-exampleCountries and Money fields looks nicer thanks to the newly added plugins. They are discovered and used transparently by the ng-xtend frameworkYesCustomStaticYesNo
inout-exampleA full list / edit / view flow is setup thanks to inputs / outputs connecting unknown components together.YesCustomStaticYesNo
store-exampleEdited elements are persisted between sessions thanks to the xt-store library included with the ng-xtend framework.YesCustomStaticYesYes
advanced-type-exampleShowcase support for advanced types and models (like references)YesCustomStaticAdvancedYes
dynamic-exampleLoads all plugins dynamically from another website using Native-FederationYesCustomDynamicYesYes

Build

It is managed by rush, so you need to install rush globally, then run rush install to install dependencies.

  • The rush build command will build all packages.

Each package being an angular application, you can run ng serve to run them locally.

To note

When loading the plugins dynamically, as for the dynamic-example example, you need to match exactly the version of Angular of the plugins. Hence the package.json for dynamic example enforces the angular version, and is defined in a separate subspace than the other examples. For more information, please see native federation blog

About

Sample project showing how to use ng-xtend.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages