Publish your live menu from Fillet for Chefs on any website using Angular Elements or Web Components. Changes you make to your menu are automatically updated on every website.
Valkyrie can be installed as a Web Component on any web page, or as an Angular Element in projects that use Angular.
To use Valkyrie as a web component:
- Add the following snippet to your HTML header. Optionally, replace
en-US
with your desired locale.
<script src="https://cdn.dineserve.com/[email protected]/en-US/elements.js"></script>
- Add the following snippet to your body. Replace
getfillet
with your menu.show username.
<fillet-menu username="getfillet"></fillet-menu>
-
Run
npm i ngx-valkyrie
. -
Import
ComponentsModule
in yourapp.module.ts
, belowHttpClientModule
.
import {ComponentsModule} from "ngx-valkyrie";
@NgModule({
imports: [
BrowserModule,
HttpClientModule,
ComponentsModule
]
})
- Add the following snippet to your Angular template. Replace
getfillet
with your menu.show username.
<fillet-menu username="getfillet"></fillet-menu>
Valkyrie can be customized using HTML attributes.
The web component accepts optional price customization attribute parameters in kebab-case.
To see the list of possible customizations and how they work consult Angular's CurrencyPipe documentation.
https://angular.io/api/common/CurrencyPipe#parameters
The file test.html
demonstrates customization.
A separate web component is built for each modern locale that is supported by Angular 13.
See the list of all supported locales in package.json
.