1.1.4 • Published 28 days ago

ngx-dynamic-headings v1.1.4

Weekly downloads
-
License
MIT
Repository
github
Last release
28 days ago

ngx-dynamic-headings

Dynamic Headings Generation Library

A library to generate heading levels at runtime in an Angular application.

This allows the developers to build components that contain heading elements of undefined level inside of them and then use components in different contexts. The heading level will be auto-generated based on the previously established page heading structure.

Helps build accessible Angular web apps.

Usage

To use the library in your project, install ngx-dynamic-headings from npm:

npm install ngx-dynamic-headings --save

Add the package to NgModule imports:

import { NgxDynamicHeadingsModule } from 'ngx-dynamic-headings';

@NgModule({
  ...
  imports: [NgxDynamicHeadingsModule,...]
  ...
})

Then use the component wherever you want dynamic headings to be generated

<h1>This is the h1 heading</h1>

<div>
  <h>This will generate an h2 heading at runtime</h>
  <h>This will generate an h2 heading at runtime</h>
  <div>
    <h>This will generate h3 heading at runtime</h>
    <h>This will generate h3 heading at runtime</h>
  </div>
</div>
1.1.4

28 days ago

1.1.3

5 months ago

1.1.1

11 months ago

1.1.0

11 months ago

1.0.1

11 months ago

1.0.0

11 months ago

0.0.4

11 months ago

0.0.3

11 months ago

0.0.2

12 months ago

0.0.1

12 months ago