core 0.13.0
Install from the command line:
Learn more about npm packages
$ npm install @fireflyframework/core@0.13.0
Install via package.json:
"@fireflyframework/core": "0.13.0"
About this version
Angular services, providers, pipes, and guards for the Firefly Frontend Framework.
npm install @fireflyframework/corenpm install @angular/core @angular/common @angular/router rxjs @jsverse/transloco @fireflyframework/utils| Module | Provider | Service | Key exports |
|---|---|---|---|
| Auth | provideAuth() |
AuthService |
authGuard, authInterceptor
|
| Session | provideSession() |
SessionService |
SESSION_TIMEOUT_CONFIG |
| User context | — | UserContextService |
— |
| API runtime | provideApiRuntime() |
ApiClient |
TransportRegistry, HttpTransportAdapter
|
| Permissions | providePermissions() |
PermissionService |
permissionGuard, roleGuard, HasPermissionDirective
|
| Master data | provideMasterData() |
MasterDataService |
— |
| Navigation | provideNavigation() |
NavigationService |
BreadcrumbService |
| Alerts | provideAlerts() |
AlertService |
ALERT_CONFIG |
| Tenant theming | provideTenantTheming() |
TenantThemeService |
TENANT_THEMING_CONFIG |
| I18n | provideI18n() |
I18nService |
FfTranslatePipe, formatting pipes |
// app.config.ts
import { provideI18n } from '@fireflyframework/core';
export const appConfig: ApplicationConfig = {
providers: [
provideI18n({
defaultLocale: 'es',
availableLocales: [
{ code: 'es', label: 'Espanol' },
{ code: 'en', label: 'English' },
],
}),
],
};<!-- template -->
{{ 'common.greeting' | ffTranslate }}
{{ amount | ffCurrency:'es' }}Private — Firefly Framework