Releases: JonnyBGod/ngx-scrollspy
Releases · JonnyBGod/ngx-scrollspy
v0.3.4
v0.3.3
v0.3.2
v0.3.1
<a name"0.3.1">
0.3.1 (2016-11-29)
Features
Bug Fixes
- build: add plugins to build process (0167745d)
Breaking Changes
New declaration system.
Main Module:
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { ScrollSpyModule } from 'ng2-scrollspy';
@NgModule({
imports: [
BrowserModule,
ScrollSpyModule.forRoot()
],
declarations: [ AppComponent ],
bootstrap: [ AppComponent ]
})
Using Plugins:
import { NgModule } from '@angular/core';
import { RouterModule } from '@angular/router';
import { CommonModule } from '@angular/common';
import {
ScrollSpyIndexDirective,
ScrollSpyIndexRenderComponent
} from 'ng2-scrollspy/dist/plugin/index';
import { ScrollSpyAffixDirective } from 'ng2-scrollspy/dist/plugin/affix';
import { IndexLegalComponent } from './my.component';
export const routes = [
{ path: '', component: MyComponent, pathMatch: 'full' }
];
@NgModule({
imports: [
CommonModule,
RouterModule.forChild(routes)
],
declarations: [
MyComponent,
ScrollSpyIndexDirective,
ScrollSpyIndexRenderComponent,
ScrollSpyAffixDirective
]
})
export default class MyModule { }
v0.3.0 BROKEN RELEASE
<a name"0.3.0">