![Introducing Enhanced Alert Actions and Triage Functionality](https://cdn.sanity.io/images/cgdhsj6q/production/fe71306d515f85de6139b46745ea7180362324f0-2530x946.png?w=800&fit=max&auto=format)
Product
Introducing Enhanced Alert Actions and Triage Functionality
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
angular2-bootstrap-pagination
Advanced tools
Readme
angular2-bootstrap-pagination is angular2 directive.
The sources for this package are in (https://github.com/rajan-g/angular2-bootstrap-pagination.git) repo. Please file issues and pull requests against that repo.
###Install from npm
npm install angular2-bootstrap-pagination
/*
* @author RAJAN G
*/
//module file
import {PaginationDirective} from '../directives/pagination.directive';
//include pagination directive
@NgModule({
imports: [ BrowserModule, FormsModule ],
declarations: [AppComponent, PaginationDirective],
bootstrap: [ AppComponent ]
})
import {Component} from 'angular2/core';
@Component({
selector: 'my-app',
template: `<ng-pagination [totalItems]="totalItems" [(ngModel)]="currentPage" [maxSize]="maxSize" [boundaryLinks]="true" (pageChanged)="pageChanged($event)"
previous-text="‹" next-text="›" first-text="First" last-text="Last">`,
})
export class AppComponent {
public currentPage:number = 1;
public totalItems:number = 200; // total numbar of page not items
public maxSize:number = 10; // max page size
constructor() {
}
public setPage(pageNo:number):void {
this.currentPage = pageNo;
};
public pageChanged(event:any):void {
//this method will trigger every page click
console.log('Number items per page: ' + event.itemsPerPage);
};
}
npm install
npm start
FAQs
angular2-bootstrap-pagination is angular2 directive. It will generate pagination or this directive must need boostrap package
The npm package angular2-bootstrap-pagination receives a total of 2 weekly downloads. As such, angular2-bootstrap-pagination popularity was classified as not popular.
We found that angular2-bootstrap-pagination demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
Security News
Polyfill.io has been serving malware for months via its CDN, after the project's open source maintainer sold the service to a company based in China.
Security News
OpenSSF is warning open source maintainers to stay vigilant against reputation farming on GitHub, where users artificially inflate their status by manipulating interactions on closed issues and PRs.