favorite-pages
v1.4.14
Published
Stencil Component Starter
Readme
Stencil Component Starter
This is an Angular component for managing favorite pages, which allows users to:
- Add the current page as a favorite for the logged-in user.
- Display a bar with all favorite pages for the logged-in user.
- Edit and delete favorite page names.
Getting Started
1. Install the component:
- First, install the component in your Angular project:
npm install favorite-page
2. Import and define custom elements in your application
```main.ts
import { defineCustomElements } from 'favorite-pages';
defineCustomElements(window);
3. Now you can use the custom elements in your HTML ** BUT ** you need to pass two dynamic properties:
cultureCode and applicationId to the component
```html
<favorite-pages [cultureCode]="cultureCode" [applicationId]="applicationId" ></favorite-pages>
and in your Angular component, you can set these values dynamically:
export class YourComponent implements OnInit {
cultureCode: string;
applicationId: string;
ngOnInit() {
// You can update these values based on user preferences, etc.
}
}