Skip to content

Important AngularJS Code snippets and resource links that can help new starter.

Notifications You must be signed in to change notification settings

KidusMT/ng-important-resources

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 

Repository files navigation

ng-important-resources

PrimeNG - Table

addRowData(row_obj){
   var d = new Date();
   this.dataSource.push({
     id:d.getTime(),
     name:row_obj.name
   });
   this.table.renderRows();
   
 }
 updateRowData(row_obj){
   this.dataSource = this.dataSource.filter((value,key)=>{
     if(value.id == row_obj.id){
       value.name = row_obj.name;
     }
     return true;
   });
 }
 deleteRowData(row_obj){
   this.dataSource = this.dataSource.filter((value,key)=>{
     return value.id != row_obj.id;
   });
 }

Date time formatting

About

Important AngularJS Code snippets and resource links that can help new starter.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published