0.1.7 • Published 3 years ago

ngx-side-template v0.1.7

Weekly downloads
-
License
-
Repository
-
Last release
3 years ago

NgxSideTemplate

https://www.npmjs.com/package/ngx-side-template

npm i ngx-side-template

image

Sample Code

<lib-ngx-side-template [items]="items" [divContent]="templateText"></lib-ngx-side-template>

app.module.ts

import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import {NgxSideTemplateModule} from 'ngx-side-template';
  imports: [
    NgxSideTemplateModule
  ],
  schemas: [    
    NO_ERRORS_SCHEMA
  ]

app.component.html

<lib-ngx-side-template [items]="items" [divContent]="templateText" (changeActiveLink)="updateItemList($event)"></lib-ngx-side-template>

app.component.ts

  templateText:any=` <h2>Responsive Surlebar Example</h2>
  <p>This example use media queries to transform the surlebar to a top navigation bar when the screen size is 700px or less.</p>
  <p>We have also added a media query for screens that are 400px or less, which will vertically stack and center the navigation links.</p>
  <h3>Resize the browser window to see the effect.</h3>`;
  items = [
    {url: 1, name:'Superman'},
    {url: 2, name:'Batman'},
    {url: 5, name:'BatGirl'},
    {url: 3, name:'Robin'},
    {url: 4, name:'Flash'}
];

  updateItemList(items: Array<any>){
    this.items = items;
  }
0.1.7

3 years ago

0.1.6

3 years ago

0.1.5

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago

0.0.18

3 years ago

0.0.17

3 years ago

0.0.16

3 years ago

0.0.15

3 years ago

0.0.14

3 years ago

0.0.13

3 years ago

0.0.12

3 years ago

0.0.11

3 years ago

0.0.10

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago