sb-tag-manager

3.9.19 • Public • Published

@project-sunbird/sb-tag-manager

Table of Contents

  1. Overview
  2. Installation
  3. Getting Started
  4. Services
    1. SBTagService

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

  1. Install the library in the project as follows :
npm i @project-sunbird/sb-tag-manager

Getting Started

  1. Navigate to App Component (or) Equivalent module and add the following import
import { SBTagModule } from 'sb-tag-manager';
  1. Initialise the Library
let instance = SBTagModule.instance;
instance.init();

Services

SBTagService

  1. 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();

Readme

Keywords

none

Package Sidebar

Install

npm i sb-tag-manager

Weekly Downloads

59

Version

3.9.19

License

none

Unpacked Size

84.7 kB

Total Files

14

Last publish

Collaborators

  • sharathkashyap