@amirsavand/ngx-common - v5.1.0
    Preparing search index...

    Class TitleBaseService

    Gives complete control over page title and making it easy to make the app have title for each section, page, and branding with a separator.

    Title format goes like this: "PAGE_NAME SEPARATOR SECTION SEPARATOR BRAND".

    Index

    Constructors

    • Parameters

      • title: Title

        Required to setting title of app (Angular injection).

      • brand: string = 'Savand Bros Chat'

        Brand goes at the end of the title.

      • separator: string = '-'

        Separator is between page name, brand, and section.

      Returns TitleBaseService

    Properties

    _pageName: null | string = null

    Page name goes at the beginning of the title.

    _section: null | string = null

    Section goes between the page name and brand.

    brand: string = 'Savand Bros Chat'

    Brand goes at the end of the title.

    separator: string = '-'

    Separator is between page name, brand, and section.

    title: Title

    Required to setting title of app (Angular injection).

    Accessors

    • set pageName(pageName: null | string): void

      Change title using the page name and consider the section too.

      Parameters

      • pageName: null | string

      Returns void

    • set section(section: null | string): void

      Change the section and update title.

      Parameters

      • section: null | string

      Returns void

    Methods

    • Remove page name from the title.

      Returns void

    • Remove section from the title.

      Returns void

    • Use page name, section, and brand to generate a title.

      Returns void

    • Reset everything and change title to the brand only.

      Returns void