angular - ng2-table: Can't bind to 'X' since it isn't a known native property -


i'm having problems trying demo work.

  1. i've installed module via: npm ng2-table --save

  2. i've added entries in systemjs.config.js map , package fields:

var map = { ..., 'ng2-table': 'node_modules/ng2-table' };

var packages = { ..., 'ng2-table': { defaultextension: 'js' } };

  1. copied html , ts here: http://valor-software.com/ng2-table/

when loading created component following error:

can't bind 'totalitems' since isn't known native property

what missing?

i think it's because directives aren't correctly specified in directives attributes of component want use ng2-table.

@component({   selector: 'table-demo',   template: template,   directives: [ng_table_directives, pagination_directives] // <------ }) export class tabledemocomponent implements oninit {   (...) } 

are sure ng_table_directives correctly set , / or imported?


Comments

Popular posts from this blog

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -

windows - Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException -

android - CoordinatorLayout, FAB and container layout conflict -