ngx.layer icon indicating copy to clipboard operation
ngx.layer copied to clipboard

doesn't work in my project

Open johnny2002 opened this issue 8 years ago • 0 comments

following the document, installed angular2-layer, then the systemconfig.js: 'angular2-layer': 'npm:angular2-layer', ... "angular2-layer" : { main: 'ng2-layer.js', defaultExtension: 'js'},

then I got the following error with "import {NgLayer, NgLayerRef} from 'angular2-layer'": iisp-report-show/src/favorite/favorite.component.ts(3,35): error TS2307: Cannot find module 'angular2-layer'. same problem to use "ng2-layer " instead of 'angular2-layer'.

Then I copy the ng2-layer.ts to my project and got the following errors: src/ng2-layer.ts(465,2): error TS4055: Return type of public method from exported class has or is using private name 'layerWraper'. src/ng2-layer.ts(638,27): error TS2339: Property 'getOwnMetadata' does not exist on type 'typeof Reflect'. src/ng2-layer.ts(641,26): error TS2339: Property 'getOwnMetadata' does not exist on type 'typeof Reflect'. src/ng2-layer.ts(664,17): error TS2345: Argument of type 'void' is not assignable to parameter of type '{} | PromiseLike<{}>'. src/ng2-layer.ts(678,14): error TS2345: Argument of type 'void' is not assignable to parameter of type '{} | PromiseLike<{}>'. src/ng2-layer.ts(683,13): error TS2345: Argument of type 'void' is not assignable to parameter of type '{} | PromiseLike<{}>'. src/ng2-layer.ts(730,7): error TS2322: Type '{ title: string; align: string; closeAble: true; cancelText: string; okText: string; outSelector:...' is not assignable to type 'LayerConfig'. Property 'declarations' is missing in type '{ title: string; align: string; closeAble: true; cancelText: string; okText: string; outSelector:...'. 17:24:14 - Compilation complete. Watching for file changes.

johnny2002 avatar Feb 24 '17 09:02 johnny2002