Giter Site home page Giter Site logo

Comments (5)

NayabHussain avatar NayabHussain commented on June 26, 2024 4

@chambersDon getting this error.. Please comment how to resolve this.

Can't bind to 'uploader' since it isn't a known native property ("rimary">
Browse
<input type="file" class="upload" ng2FileSelect [ERROR ->][uploader]="uploader" (change)="browse($event.target.value)" >

"):

from ngx-uploader.

escarabin avatar escarabin commented on June 26, 2024 2

For those encountering this problem, I finally solved it.
First you have to import {FileDropDirective} from ng2-file-upload :

import {FileSelectDirective,
        FileDropDirective,
        FileUploader} from 'ng2-file-upload/ng2-file-upload';

Then pass 'FileDropDirective' in your component's directives

from ngx-uploader.

chambersDon avatar chambersDon commented on June 26, 2024

Solved. The directive is now ng2FileDrop, not ng2-file-drop.

from ngx-uploader.

yeelan0319 avatar yeelan0319 commented on June 26, 2024

@escarabin
I am getting this error when using jspm to bundle the js files for serving purpose, but not getting it when running separately with systemjs. May I know what tool you to bundle them to avoid this error in production? Thanks!

from ngx-uploader.

jkuri avatar jkuri commented on June 26, 2024

@yeelan0319 I suppose your tool for bundle is eliminating the code that is actually in use. If you are using webpack see the configuration examples for production at https://github.com/angular/angular-cli or https://github.com/AngularClass/angular2-webpack-starter and compare it to yours. I had similar problems before and it was an issue with the production config.

from ngx-uploader.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.