Comments (14)
I get same problem.
Can't bind to 'settings' since it isn't a known property of 'ng2-smart-table'.
- If 'ng2-smart-table' is an Angular component and it has 'settings' input, then verify that it is part of this module.
- If 'ng2-smart-table' is a Web Component then add "CUSTOM_ELEMENTS_SCHEMA" to the '@NgModule.schema' of this component to suppress this message.
("My First Angular App
][settings]="attr.settings" [source]="attr.data">
"): AppComponent@2:21
Can't bind to 'source' since it isn't a known property of 'ng2-smart-table'.
- If 'ng2-smart-table' is an Angular component and it has 'source' input, then verify that it is part of this module.
- If 'ng2-smart-table' is a Web Component then add "CUSTOM_ELEMENTS_SCHEMA" to the '@NgModule.schema' of this component to suppress this message.
("My First Angular App
][source]="attr.data">
"): AppComponent@2:48
'ng2-smart-table' is not a known element:
- If 'ng2-smart-table' is an Angular component, then verify that it is part of this module.
- If 'ng2-smart-table' is a Web Component then add "CUSTOM_ELEMENTS_SCHEMA" to the '@NgModule.schema' of this component to suppress this message. ("
My First Angular App
[ERROR ->]
"): AppComponent@2:4 ; Zone: ; Task: Promise.then ; Value: Error: Template parse errors:(…) Error: Template parse errors:
Can't bind to 'settings' since it isn't a known property of 'ng2-smart-table'.
- If 'ng2-smart-table' is an Angular component and it has 'settings' input, then verify that it is part of this module.
- If 'ng2-smart-table' is a Web Component then add "CUSTOM_ELEMENTS_SCHEMA" to the '@NgModule.schema' of this component to suppress this message.
("My First Angular App
][settings]="attr.settings" [source]="attr.data">
"): AppComponent@2:21
Can't bind to 'source' since it isn't a known property of 'ng2-smart-table'.
- If 'ng2-smart-table' is an Angular component and it has 'source' input, then verify that it is part of this module.
- If 'ng2-smart-table' is a Web Component then add "CUSTOM_ELEMENTS_SCHEMA" to the '@NgModule.schema' of this component to suppress this message.
("My First Angular App
][source]="attr.data">
"): AppComponent@2:48
'ng2-smart-table' is not a known element:
- If 'ng2-smart-table' is an Angular component, then verify that it is part of this module.
- If 'ng2-smart-table' is a Web Component then add "CUSTOM_ELEMENTS_SCHEMA" to the '@NgModule.schema' of this component to suppress this message. ("
My First Angular App
[ERROR ->]
is there any simple demo project?
from ng2-smart-table.
@biolee I got the same problem, and the issue is that you have to includeimport { Ng2SmartTableModule } from 'ng2-smart-table';
in your module file and don't forget to add it also in your imports on @NgModule.
from ng2-smart-table.
Error: Template parse errors:
Can't bind to 'settings' since it isn't a known property of 'ng2-smart-table'.
1. If 'ng2-smart-table' is an Angular component and it has 'settings' input, then verify that it is part of this module.
2. If 'ng2-smart-table' is a Web Component then add "CUSTOM_ELEMENTS_SCHEMA" to the '@NgModule.schema' of this component to suppress this message.
("
<ng2-smart-table [ERROR ->][settings]="settings" [source]="data">
"): AppComponent@1:19
Can't bind to 'source' since it isn't a known property of 'ng2-smart-table'.
1. If 'ng2-smart-table' is an Angular component and it has 'source' input, then verify that it is part of this module.
2. If 'ng2-smart-table' is a Web Component then add "CUSTOM_ELEMENTS_SCHEMA" to the '@NgModule.schema' of this component to suppress this message.
("
<ng2-smart-table [settings]="settings" [ERROR ->][source]="data">
"): AppComponent@1:41 in C:/Desenvolvimento/workspace/cetip-lista-eventos/config/karma-test-shim.ts (line 37133)
from ng2-smart-table.
After long time I close this issue.
In my case I have these structure:
src
--app
-- app.module
-- TravelPlan
-- travel-plan.module
-- test.component
So, I was trying put the ng2-smart-table in app.module, but I was wrong. The correct is put in travel-plan.module.
from ng2-smart-table.
just remove this:
"noImplicitAny": true,
"suppressImplicitAnyIndexErrors": true
from your tsconfig.json
from ng2-smart-table.
The solution of @jfbarboza actually worked for me. I tried to include SmartTableComponent
into Dashboard
. Here is my case:
import { SmartTableComponent } from "../tables/smart-table/smart-table.component";
import { Ng2SmartTableModule } from 'ng2-smart-table';
Don't forget to include into NgModule
:
@NgModule({
imports: [
ThemeModule,
AngularEchartsModule,
Ng2SmartTableModule
],
declarations: [
DashboardComponent,
StatusCardComponent,
TemperatureDraggerComponent,
ContactsComponent,
RoomSelectorComponent,
TemperatureComponent,
RoomsComponent,
TeamComponent,
KittenComponent,
SecurityCamerasComponent,
ElectricityComponent,
ElectricityChartComponent,
WeatherComponent,
PlayerComponent,
SolarComponent,
TrafficComponent,
TrafficChartComponent,
SmartTableComponent
],
})
from ng2-smart-table.
ERROR in ./~/ng2-smart-table/src/ng2-smart-table/components/title/title.component.ts
(37,25): error TS7006: Parameter 'fieldConf' implicitly has an 'any' type.
ERROR in ./~/ng2-smart-table/src/ng2-smart-table/components/pager/pager.component.ts
(67,21): error TS7006: Parameter 'changes' implicitly has an 'any' type.
ERROR in ./~/ng2-smart-table/src/ng2-smart-table/components/filter/filter.component.ts
(40,10): error TS7006: Parameter 'event' implicitly has an 'any' type.
ERROR in ./~/ng2-smart-table/src/ng2-smart-table/components/cell/cell.component.ts
(36,12): error TS7006: Parameter 'event' implicitly has an 'any' type.
ERROR in ./~/ng2-smart-table/src/ng2-smart-table/components/cell/cell.component.ts
(41,11): error TS7006: Parameter 'event' implicitly has an 'any' type.
ERROR in ./~/ng2-smart-table/src/ng2-smart-table/lib/data-source/local/local.sorter.ts
(3,31): error TS7006: Parameter 'direction' implicitly has an 'any' type.
ERROR in ./~/ng2-smart-table/src/ng2-smart-table/lib/data-source/local/local.sorter.ts
(3,42): error TS7006: Parameter 'a' implicitly has an 'any' type.
ERROR in ./~/ng2-smart-table/src/ng2-smart-table/lib/data-source/local/local.sorter.ts
(3,45): error TS7006: Parameter 'b' implicitly has an 'any' type.
ERROR in ./~/ng2-smart-table/src/ng2-smart-table/lib/data-source/local/local.data-source.ts
(13,5): error TS7018: Object literal's property 'filters' implicitly has an 'any[]' type.
ERROR in ./~/ng2-smart-table/src/ng2-smart-table/lib/data-source/local/local.data-source.ts
(162,13): error TS7006: Parameter 'fieldConf' implicitly has an 'any' type.
ERROR in ./~/ng2-smart-table/src/ng2-smart-table/lib/data-source/local/local.data-source.ts
(235,13): error TS7005: Variable 'mergedData' implicitly has an 'any[]' type.
ERROR in ./~/ng2-smart-table/src/ng2-smart-table/lib/helpers.ts
(1,28): error TS7006: Parameter 'out' implicitly has an 'any' type.
ERROR in ./~/ng2-smart-table/src/ng2-smart-table/lib/helpers.ts
(1,33): error TS7019: Rest parameter 'sources' implicitly has an 'any[]' type.
ERROR in ./~/ng2-smart-table/src/ng2-smart-table/lib/data-set/cell.ts
(8,31): error TS7006: Parameter 'value' implicitly has an 'any' type.
ERROR in ./~/ng2-smart-table/src/ng2-smart-table/lib/data-set/cell.ts
(10,57): error TS7006: Parameter 'column' implicitly has an 'any' type.
ERROR in ./~/ng2-smart-table/src/ng2-smart-table/lib/data-set/row.ts
(34,11): error TS7006: Parameter 'data' implicitly has an 'any' type.
ERROR in ./~/ng2-smart-table/src/ng2-smart-table/lib/data-set/data-set.ts
(34,17): error TS7006: Parameter 'data' implicitly has an 'any' type.
ERROR in ./~/ng2-smart-table/src/ng2-smart-table/lib/data-set/data-set.ts
(115,27): error TS7006: Parameter 'settings' implicitly has an 'any' type.
ERROR in ./~/ng2-smart-table/src/ng2-smart-table/lib/grid.ts
(19,35): error TS7006: Parameter 'settings' implicitly has an 'any' type.
ERROR in ./~/ng2-smart-table/src/ng2-smart-table/lib/grid.ts
(148,31): error TS7006: Parameter 'changes' implicitly has an 'any' type.
ERROR in ./~/ng2-smart-table/src/ng2-smart-table/lib/grid.ts
(158,33): error TS7006: Parameter 'changes' implicitly has an 'any' type.
ERROR in ./~/ng2-smart-table/src/ng2-smart-table/lib/grid.ts
(169,34): error TS7006: Parameter 'changes' implicitly has an 'any' type.
ERROR in ./~/ng2-smart-table/src/ng2-smart-table/lib/grid.ts
(199,27): error TS7006: Parameter 'source' implicitly has an 'any' type.
ERROR in ./~/ng2-smart-table/src/ng2-smart-table/ng2-smart-table.component.ts
(90,9): error TS7006: Parameter 'event' implicitly has an 'any' type.
ERROR in ./~/ng2-smart-table/src/ng2-smart-table/ng2-smart-table.component.ts
(110,20): error TS7006: Parameter 'event' implicitly has an 'any' type.
ERROR in ./~/ng2-smart-table/src/ng2-smart-table/ng2-smart-table.component.ts
(125,22): error TS7006: Parameter 'event' implicitly has an 'any' type.
ERROR in ./~/ng2-smart-table/src/ng2-smart-table/ng2-smart-table.component.ts
(139,22): error TS7006: Parameter 'event' implicitly has an 'any' type.
ERROR in ./~/ng2-smart-table/src/ng2-smart-table/ng2-smart-table.component.ts
(146,20): error TS7006: Parameter 'event' implicitly has an 'any' type.
ERROR in .//ng2-smart-table/src/ng2-smart-table/ng2-smart-table.component.ts/ng2-smart-table/src/ng2-smart-table/ng2-smart-table.component.ts 195:21-54
Module not found: Error: Cannot resolve module 'sass' in C:\Desenvolvimento\workspace\cetip-lista-eventos\node_modules\ng2-smart-table\src\ng2-smart-table
@ ./
ERROR in .//ng2-smart-table/src/ng2-smart-table/components/title/title.component.ts/ng2-smart-table/src/ng2-smart-table/components/title/title.component.ts 64:21-44
Module not found: Error: Cannot resolve module 'sass' in C:\Desenvolvimento\workspace\cetip-lista-eventos\node_modules\ng2-smart-table\src\ng2-smart-table\components\title
@ ./
ERROR in .//ng2-smart-table/src/ng2-smart-table/components/pager/pager.component.ts/ng2-smart-table/src/ng2-smart-table/components/pager/pager.component.ts 90:21-44
Module not found: Error: Cannot resolve module 'sass' in C:\Desenvolvimento\workspace\cetip-lista-eventos\node_modules\ng2-smart-table\src\ng2-smart-table\components\pager
@ ./
ERROR in .//ng2-smart-table/src/ng2-smart-table/components/filter/filter.component.ts/ng2-smart-table/src/ng2-smart-table/components/filter/filter.component.ts 66:21-45
Module not found: Error: Cannot resolve module 'sass' in C:\Desenvolvimento\workspace\cetip-lista-eventos\node_modules\ng2-smart-table\src\ng2-smart-table\components\filter
@ ./
ERROR in .//ng2-smart-table/src/ng2-smart-table/components/cell/cell.component.ts/ng2-smart-table/src/ng2-smart-table/components/cell/cell.component.ts 49:21-43
Module not found: Error: Cannot resolve module 'sass' in C:\Desenvolvimento\workspace\cetip-lista-eventos\node_modules\ng2-smart-table\src\ng2-smart-table\components\cell
@ ./
from ng2-smart-table.
Hey @LoscaraDK, thanks for opening issue with us, would you mind providing us with the details about your environment? angular version, package json details, etc. Thanks.
from ng2-smart-table.
I deleted it , i will try on angular 1, i need do this on corporative and the component dont work very well with me, too much files to configure and write to show a list. i will be very glad if u put a complete example with just the component and nothing more if possible, the demo-app have too much code its very much confuse to someone like me newbie on angular 2, on example page its show a very simple way to use the component but that dont work. ty for ur time.
from ng2-smart-table.
Hi..I got same issue. Following are details of my project -
Package json details -
{ "name": "angular-quickstart", "version": "1.0.0", "description": "QuickStart package.json from the documentation, supplemented with testing support", "scripts": { "start": "tsc && concurrently \"tsc -w\" \"lite-server\" ", "e2e": "tsc && concurrently \"http-server -s\" \"protractor protractor.config.js\" --kill-others --success first", "lint": "tslint ./app/**/*.ts -t verbose", "lite": "lite-server", "pree2e": "webdriver-manager update", "test": "tsc && concurrently \"tsc -w\" \"karma start karma.conf.js\"", "test-once": "tsc && karma start karma.conf.js --single-run", "tsc": "tsc", "tsc:w": "tsc -w" }, "keywords": [], "author": "", "license": "MIT", "dependencies": { "@angular/common": "~2.4.0", "@angular/compiler": "~2.4.0", "@angular/core": "~2.4.0", "@angular/forms": "~2.4.0", "@angular/http": "~2.4.0", "@angular/material": "^2.0.0-beta.1", "@angular/platform-browser": "~2.4.0", "@angular/platform-browser-dynamic": "~2.4.0", "@angular/router": "~3.4.0", "angular-in-memory-web-api": "~0.2.4", "angular2-qrcode": "^1.0.5", "bootstrap": "^4.0.0-alpha.6", "bootstrap-layout": "^1.0.0-alpha.10", "bootstrap-layout-scrollable": "^1.1.0", "core-js": "^2.4.1", "hammerjs": "^2.0.8", "jquery": "^3.1.1", "ng2-bootstrap": "^1.3.2", "ng2-bootstrap-layout": "^2.0.0", "ng2-qrcode": "^0.1.1", "ng2-smart-table": "^0.5.2-1", "rxjs": "5.0.1", "systemjs": "0.19.40", "zone.js": "^0.7.4" }, "devDependencies": { "@types/hammerjs": "^2.0.34", "@types/jasmine": "^2.5.36", "@types/node": "^6.0.46", "canonical-path": "0.0.2", "concurrently": "^3.1.0", "http-server": "^0.9.0", "jasmine-core": "~2.4.1", "karma": "^1.3.0", "karma-chrome-launcher": "^2.0.0", "karma-cli": "^1.0.1", "karma-jasmine": "^1.0.2", "karma-jasmine-html-reporter": "^0.2.2", "lite-server": "^2.2.2", "lodash": "^4.16.4", "protractor": "~4.0.14", "rimraf": "^2.5.4", "tslint": "^3.15.1", "typescript": "~2.0.10" }, "repository": {} }
Please help if anyone had any luck on this issue. Thanks in advance !
from ng2-smart-table.
I am getting following errors -
`node_modules/ng2-smart-table/src/ng2-smart-table/lib/data-source/local/local.data-source.ts(13,5): error TS7018: Object literal's property 'filters' implicitly has an 'any[]' type.
node_modules/ng2-smart-table/src/ng2-smart-table/lib/data-source/local/local.data-source.ts(236,13): error TS7005: Variable 'mergedData' implicitly has an 'any[]' type.
node_modules/ng2-smart-table/src/ng2-smart-table/lib/data-source/server/server.data-source.ts(70,12): error TS2322: Type 'Observable' is not assignable to type 'Observable'.
Property 'source' is protected but type 'Observable' is not a class derived from 'Observable'.
node_modules/ng2-smart-table/src/ng2-smart-table/lib/helpers.ts(27,7): error TS7005: Variable 'clone' implicitly has an 'any[]' type.
node_modules/ng2-smart-table/src/ng2-smart-table/lib/helpers.ts(53,37): error TS7019: Rest parameter 'objects' implicitly has an 'any[]' type.`
from ng2-smart-table.
Hi..I got same issue when i try to set a smart table with Angular2 i have this errors
can you please help me
thanks
from ng2-smart-table.
@MJAHEDSABRINE :Any luck? Please also refer #236
from ng2-smart-table.
any luck with this?
from ng2-smart-table.
Related Issues (20)
- ServerDataSource: API error Handling
- Any way to send some data to custom filter component?
- How to Make table scrollable vertically (left to right) if we are using n2-smart-table?
- How to show or hide a tag in the column tags in ng2-smart-table
- Issue while using in Angular 14 HOT 2
- Allow providing static row classes
- Access to Documentation for Old versions
- valuePrepareFunction not parsing JSON on EDIT
- How can I get the index of current page
- Column list elements are not visible HOT 1
- Table not work when I refresh page HOT 2
- Is it possible create a custom list filter of a column in my smart table? HOT 1
- How to add CSS class to ng2-smart-table <td> ?
- How to get the row element? HOT 1
- SetFilter() and SetPaging() are not Working Properly
- I am using ng2 smart table library ad when i clicked on edit than one column is editable rest column is not editable. before click on the edit button data is displayed in the all columns but after click on that some column fields are empty. How can I resolve this issue in ng2 smart table. I am sharing my angular code.
- Support for Angular 15.x
- Is there a way to combine AND and OR operators in the setFilter function?
- Support for Angular 17.x
- Support for Angular 17.x HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ng2-smart-table.