Enlcxx / angular2-resizing-cropping-image

Resize, rotate and crop images(cropper) for Angular 8
https://alyle.io/components/image-cropper
32 stars 6 forks source link

not an NgModule #3

Closed Makeon closed 7 years ago

Makeon commented 7 years ago

install with npm install angular2-resizing-cropping-image use with angular-cli `import { NgModule } from '@angular/core'; import { lyResizingCroppingImagesModule } from 'angular2-resizing-cropping-image'; import { ImageUploadComponent } from './image-upload.component';

@NgModule({ declarations: [ ImageUploadComponent ], imports: [lyResizingCroppingImagesModule], exports:[ ImageUploadComponent ], providers: [] }) export class ImageUploadModule { }`

during compiling have reply:

ERROR in lyResizingCroppingImagesModule is not an NgModule

r31m4g1n3d commented 7 years ago

^2

Makeon commented 7 years ago

?

Enlcxx commented 7 years ago

Hi @Makeon very soon I will upload a new and improved update

Frly commented 7 years ago

Sorry for the delay Update the latest version

npm i angular2-resizing-cropping-image@1.0.0-final.0 --save

This is not the end, there will be more improvements

ayya1987 commented 7 years ago

Sorry, i am also facing same problem.

Frly commented 7 years ago

@ayya1987 what is the problem? I think it's the name of the module lyResizingCroppingImagesModule > LyResizingCroppingImagesModule and selector ly-cropping > ly-cropping-img

Silvercast commented 7 years ago

I have same issue too. very frustrating.

imnnquy commented 7 years ago

Same issue here

imnnquy commented 7 years ago

Is this repository a example of how to use the module angular2-resizing-cropping-image, I don't see the source code of this module here?

carlos-hs commented 7 years ago

For those who has this problem, just add ".forRoot()" after the module. Ex.: LyResizingCroppingImageModule.forRoot()

This solved for me.

Untel commented 7 years ago

Up, have the same issue. using forRoot() is not working for me.

Enlcxx commented 7 years ago

@Untel install npm i alyle-ui

import { LyResizingCroppingImageModule } from 'alyle-ui/resizing-cropping-images';

This repository will be in Alyle-ui demo

numerized commented 7 years ago

Solution from @Enlcxx works but you have to rename the tag:

<ly-cropping-img [hidden]="!Img._img.type" #Img format="png"></ly-cropping-img> into <ly-cropping [hidden]="!Img._img.type" #Img format="png"></ly-cropping>

numerized commented 7 years ago

Then you have this error:

No provider for LyTheme!

alyleui commented 7 years ago

@numerized LyTheme is to set the theme color of the components follow the example below https://alyle-ui.firebaseapp.com/#/get-started

Untel commented 7 years ago

@alyleui Can you just wrap each component in his own package ?

alyleui commented 7 years ago

@Untel All components will depend on AlyleUIModule in AlyleUIModule you can set the colors for the components, you can use the components you want

numerized commented 7 years ago

@alyleui something is missing in your doc, I've followed exactly what you are showing us.

alyleui commented 7 years ago

@numerized Are you using Angular cli?

alyleui commented 7 years ago

I found the error https://plnkr.co/edit/ApSnTe?p=preview is rare that does not appear in demo

numerized commented 7 years ago

Thanks, I'm using Ionic3 cli

alyleui commented 7 years ago

I'll make it compatible with ionic3

numerized commented 7 years ago

YEY !

alyleui commented 7 years ago

new version 1.4.6