PrimeNG 1.0.0-beta.13 Released

Datetime:2016-08-22 23:06:40          Topic: AngularJS           Share

PrimeTek is glad to announce the new release of PrimeNG, the leading open source rich UI components suite for Angular 2. Beta13 brings first class support for the new NgModules of Angular 2.RC5 which drastically changed how the application is bootstrapped and dependencies are configured. We really like this change as it helps to remove many boilerplate code.

Modular

Every PrimeNG components now has its own module and can be imported to your application via the imports section. That also means they need to be removed from the declarations section.

Old Method

This is not ideal and not the suggested way in Angular 2 final, it only works as RC5 has backward compatibility enabled which will likely be removed once Angular2 is final.

import {NgModule}      from '@angular/core';
import {InputText,DataTable,Button,Dialog} from 'primeng/primeng';

@NgModule({
  imports:      [BrowserModule],
  declarations: [AppComponent,InputText,DataTable,Button,Dialog],
  bootstrap:    [AppComponent],
  providers:    [CarService]
})
export class AppModule { }

New Method

This method is the suggested one and fully utilizes NgModules.

import {NgModule}      from '@angular/core';
import {InputTextModule,DataTableModule,ButtonModule,DialogModule} from 'primeng/primeng';

@NgModule({
  imports:      [BrowserModule,InputTextModule,DataTableModule,ButtonModule,DialogModule],
  declarations: [AppComponent],
  bootstrap:    [AppComponent],
  providers:    [CarService]
})
export class AppModule { }

Full ChangeLog

New Features and Enhancements

Defect Fixes

Breaking Changes

  • SplitButtonItem is removed to align with other menu components, use MenuItem api instead.

Download

PrimeNG is available at npm .

Roadmap

We couldn’t add new features lately as we wanted since we had to catch up with changes Angular2 RCs, nowadays it feels like Angular2 is really close to the final and we don’t expect big changes from now on. So in addition to constant maintenance work, planned upcoming features are;

  • FileUpload
  • Spreadsheet (Excel like component)
  • TriStateCheckbox
  • Custom components in datatable headers, filters and cell editors
  • Accessibility Improvements (508)

Also we’ll introduce a new Material Layout and Theme called Ultima very soon for PrimeNG along with PrimeFaces;





About List