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": true
toangular.json
test and build options. Alternatively, add--preserve-symlink
option tong test
andng build
. -
Include
"./node_modules/fiori-fundamentals/dist/fiori-fundamentals.css"
in
angular.json
styles array (projects>your_project>architect>build>styles
). -
Add
"include": [ /components/angular/generic-list/src/app/modules/list/**/*.ts" ]
to thetsconfig.json
file of your component. -
Add
"app"
to thetslint.json
file 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/list
inside 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.