This is a private package, not published to npm anymore. We use symlinks to use it in our Angular microfrontends.
Run npm run serve for a development server. Go to http://localhost:4200/. The application reloads automatically if you change any of the source files.
A sandbox application appears. It uses <y-generic-table> and <y-generic-list> components from the embedded list.module.ts file.
To use the package in a component, perform the following steps:
-
Run
npm install --save fiori-fundamentals fundamental-ngx
in your project directory.
-
Add
"preserveSymlinks": truetoangular.jsontest and build options. Alternatively, add--preserve-symlinkoption tong testandng build. -
Include
"./node_modules/fiori-fundamentals/dist/fiori-fundamentals.css"in
angular.jsonstyles array (projects>your_project>architect>build>styles). -
Add
"include": [ /components/angular/generic-list/src/app/modules/list/**/*.ts" ]to thetsconfig.jsonfile of your component. -
Add
"app"to thetslint.jsonfile if it includes the following rules:"no-submodule-imports": [true, "app"], "no-implicit-dependencies": [true, ["app"]], -
Add a symlink to
components/angular/generic-list/src/app/modules/listinside your application.
For example, the console core has the following symlink set:core/src/app/generic-list > components/angular/generic-list/src/app/modules/list -
Use the generic list in
import * as GenericList from 'app/generic-list'command.