Thanks switach for prompt reply,
i used thecomand you menioned to install:
npm i angular-handsontable;
then in my module file imported
import { HotTableModule } from ‘angular-handsontable’;
and then in imports:
imports: [
HotTableModule.forRoot()
]
after dong this much , i builded my applicatio and when i am trying to run that component where i imported handsontable module, page is crashing on console i am not getting any error as well.
my package.json file
{
“_from”: “angular-handsontable”,
“_id”: “angular-handsontable@1.0.0-beta4”,
“_inBundle”: false,
“_integrity”: “sha512-pBghm0ysgoyvKjJMZzakjHDl2qz6l1AL5a82PRyO5/2TLKpraKP3D5raUinXGuh6WttxHOJglZSW4VddV/IsSA==”,
“_location”: “/angular-handsontable”,
“_phantomChildren”: {},
“_requested”: {
“type”: “tag”,
“registry”: true,
“raw”: “angular-handsontable”,
“name”: “angular-handsontable”,
“escapedName”: “angular-handsontable”,
“rawSpec”: “”,
“saveSpec”: null,
“fetchSpec”: “latest”
},
“_requiredBy”: [
“#USER”,
“/”
],
“_resolved”: “https://registry.npmjs.org/angular-handsontable/-/angular-handsontable-1.0.0-beta4.tgz”,
“_shasum”: “848d4a54957285112f7537eb090fe3ea16beffa6”,
“_spec”: “angular-handsontable”,
“_where”: …\webapp",
“author”: {
“name”: “Handsoncode”,
“email”: "hello@handsontable.com"
},
“browser”: “bundles/index.umd.js”,
“bugs”: {
“url”: “https://github.com/handsontable/angular-handsontable/issues”
},
“bundleDependencies”: false,
“dependencies”: {
“handsontable”: “0.34.4”
},
“deprecated”: “Handsontable for Angular is now available as @handsontable/angular.”,
“description”: “Official Angular 2 directive for Handsontable”,
“devDependencies”: {
“@angular/common”: “~4.2.0”,
“@angular/compiler”: “~4.2.0”,
“@angular/compiler-cli”: “~4.2.0”,
“@angular/core”: “~4.2.0”,
“@angular/forms”: “~4.2.0”,
“@angular/http”: “~4.2.0”,
“@angular/platform-browser”: “~4.2.0”,
“@angular/platform-browser-dynamic”: “~4.2.0”,
“@angular/router”: “~4.2.0”,
“@types/jasmine”: “2.5.36”,
“@types/node”: “^6.0.45”,
“angular2-template-loader”: “^0.6.0”,
“awesome-typescript-loader”: “^3.2.2”,
“core-js”: “^2.4.1”,
“cross-env”: “^5.0.1”,
“extract-text-webpack-plugin”: “3.0.0”,
“file-loader”: “^0.9.0”,
“generate-release”: “^0.13.1”,
“html-loader”: “^0.4.3”,
“html-webpack-plugin”: “^2.16.1”,
“jasmine-core”: “^2.4.1”,
“karma”: “^1.2.0”,
“karma-chrome-launcher”: “^2.0.0”,
“karma-coverage-istanbul-reporter”: “^1.3.0”,
“karma-firefox-launcher”: “^1.0.1”,
“karma-jasmine”: “^1.0.2”,
“karma-jasmine-html-reporter”: “^0.2.2”,
“karma-sourcemap-loader”: “^0.3.7”,
“karma-webpack”: “^2.0.1”,
“null-loader”: “^0.1.1”,
“raw-loader”: “^0.5.1”,
“rimraf”: “^2.5.2”,
“rxjs”: “^5.4.2”,
“typescript”: “^2.4.2”,
“webpack”: “^2.6.1”,
“zone.js”: “0.8.12”
},
“homepage”: “https://github.com/handsontable/angular-handsontable#readme”,
“js:next”: “dist/index.js”,
“keywords”: [
“angular”,
“angular2”,
“angular4”,
“handsontable”,
“table”,
“spreadsheet”,
“datatable”,
“data”
],
“license”: “MIT”,
“main”: “index.ts”,
“module”: “dist/index.js”,
“name”: “angular-handsontable”,
“peerDependencies”: {
“@angular/core”: “^2.4.7 || ^4.0.0”
},
“repository”: {
“type”: “git”,
“url”: “git+https://github.com/handsontable/angular-handsontable.git”
},
“scripts”: {
“build”: “npm run build:bundles && npm run build:dist”,
“build:bundles”: “npm run clean:bundles && cross-env NODE_ENV=production webpack”,
“build:dist”: “npm run clean:dist && ngc -p ./tsconfig.json”,
“clean”: “npm run clean:dist && npm run clean:bundles”,
“clean:bundles”: “rimraf bundles”,
“clean:dist”: “rimraf dist”,
“prepublish”: “npm run clean && npm run build”,
“release”: “generate-release”,
“test”: “npm run build && karma start”,
“test:watch”: “tsc && karma start --no-single-run --auto-watch”,
“watch”: “cross-env NODE_ENV=watch webpack --watch”
},
“typings”: “./dist/index.d.ts”,
“version”: “1.0.0-beta4”
}
can you please help.
Thanks in advance.