sb-tag-manager
v3.9.19
Published
Tag Manager for Clients to Edge Compute based on Criteria
Downloads
559
Readme
@project-sunbird/sb-tag-manager
Table of Contents
Overview
Library is used to create Edge Computable Tags agnostic to project,framework choice. This works like a Open Specification to enable clients to generate Tags and Evaluate these tags against a criteria from server.
Installation
- Install the library in the project as follows :
npm i @project-sunbird/sb-tag-manager
Getting Started
- Navigate to App Component (or) Equivalent module and add the following import
import { SBTagModule } from 'sb-tag-manager';
- Initialise the Library
let instance = SBTagModule.instance;
instance.init();
Services
SBTagService
- Tag Interface Methods
instance.SBTagService.pushTag({object},"prefix_string");
instance.SBTagService.getTags("prefix_string");
instance.SBTagService.getAllTags();
instance.SBTagService.removeTag("prefix_string");
instance.SBTagService.removeAll();