uploadcare / angular-uploadcare

Provides a directive for the Uploadcare widget.
MIT License
37 stars 16 forks source link

Wrapper for Angular 2 #22

Open Mahaswami opened 7 years ago

Mahaswami commented 7 years ago

Appreciate if you can share your plans for Angular 2 wrapper. We do need to use Angular 2 for the new projects we undertake.

Zmoki commented 7 years ago

Sure, we will create Angular 2 wrapper soon. Before that, maybe this demo can be useful - https://plnkr.co/edit/6caWQ6cct4L3715LehxZ?p=preview

adamlaz commented 7 years ago

+1 to an Angular 2+ wrapper!

empurium commented 7 years ago

+1 as well! Would love to see this :)

adamlaz commented 7 years ago

@Zmoki @Akurganow @dmitry-mukhin - any comments / updates on this? Would love to know where this stands priority-wise, if it's on roadmap, etc.

Next 5 weeks I am building some MVP's to mockup Uploadcare vs Filestack vs Native Firebase Storage and.. well, if ya'll already have some progress on building this wrapper that would certainly help me.

If my timeframe allows I'd also like to help with a PR to do build this... let's chat?

dmitry-mukhin commented 7 years ago

@adamlaz any help is more than welcome, of course :) as for progress, I'd say, since this is github — no commits = no progress

@Zmoki ?

Zmoki commented 7 years ago

We plan to start dev a Angular X component on next week.

@adamlaz @empurium will you help with testing? 😉

Also maybe are you have any requirements or wishes for an Angular 2+ wrapper?

adamlaz commented 7 years ago

@adamlaz @empurium will you help with testing? 😉

I'm more than happy to help w/ testing!

I will see if I can think of any specific wishes for this wrapper...

emericmourot commented 6 years ago

I can also help with testing. @Zmoki: Any idea of the release date of the Angular X component ?

gogs85 commented 6 years ago

When will be npm package for Angular4,5? I found this npm for uploadcare :https://github.com/MatthiasKunnen

Zmoki commented 6 years ago

Hi folks! We began work on package for Angular. While in private repo. So, next week we will show the first version.

gogs85 commented 6 years ago

Hi, when we can expect this week first version ? :)

Zmoki commented 6 years ago

Tomorrow!)) https://github.com/uploadcare/ngx-uploadcare-widget

gogs85 commented 6 years ago

Great :))

Zmoki commented 6 years ago

Ops, we released it now =). So, you can install it from npm,

npm install ngx-uploadcare-widget

More info: https://github.com/uploadcare/ngx-uploadcare-widget

P.S. issues and PRs are welcome!

Chethannp commented 6 years ago

@Zmoki - First of all thanks for this great library. few things I wanted to seek advice on an issue that i have been struggling to fix.

I am using lazy loading approach in ionic 3. Tried to use your plugin named “ngx-uploadcare-widget” but it said the UCwidget is not defined and please import it into the page… after several hours of debugging I found that it had to be moved to a shared component folder and then import it individually in pages, by doing this all the errors were fixed and app was working fine on browser and on debug build.

But when I did ionic cordova build --release --prod the app seems to be hung in the sense it was showing me blank white screen, since we cant debug prod I was left clueless on what is happening, later in one of the Ionic forms I learnt that we can add a call back function to this.navCtrl.setRoot(‘HomePage’). When I did that and generated a build I was able to see an error saying (ReferenceError APP_VERSION is not defined for Uploadcare) and now again i have no idea on what to do :(, The team at Ionic says it could be an issue with the plugin and they asked me to check in with the developer/Team of uploadcare widget(Angular 2), so I am posting this here. If you / anybody here have encountered a similar issue or understands this problem request you to please help me in fixing this as I have been stuck here since a month and not sure what to do.

Ps: I did follow all the advised on #12, #13.

Also implemented the shared module concept as mentioned below

Fyi:

//Shared Components Module

import { NgModule } from ‘’; import { UcWidgetComponent } from ‘ngx-uploadcare-widget’;

@NgModule({ declarations: [UcWidgetComponent], imports: [], exports: [UcWidgetComponent] }) export class ComponentsModule {}

App.module.ts file

//App import { ComponentsModule } from ‘…/components/components.module’;

@NgModule({ declarations: [ MyApp, ], imports: [ HttpClientModule, HttpModule, BrowserModule, IonicModule.forRoot(MyApp), ComponentsModule, ], bootstrap: [IonicApp], entryComponents: [ MyApp, ],

//Home Module (home.module.ts file)

import { ComponentsModule } from ‘…/…/components/components.module’;

@NgModule({ declarations: [ HomePage, ], imports: [ IonicPageModule.forChild(HomePage), ComponentsModule, ], }) export class HomePageModule {}

and did comment out // export * from './ucWidget.module'; in index.d.ts and index.js but I am still having the app_version not defined error. I am requesting you to please help!!!!!!

Many thanks in advance.

Chethannp commented 6 years ago

Fyi: https://github.com/uploadcare/ngx-uploadcare-widget/issues/14, https://github.com/uploadcare/ngx-uploadcare-widget/issues/10

Chethannp commented 6 years ago

@Zmoki - Can you please check this issue updated in angular 2 github repo, please been requesting for a support since 2weeks and no one seems to be responding. Requesting you to please help!

Fyi: https://github.com/uploadcare/ngx-uploadcare-widget/issues/14