Giter Site home page Giter Site logo

Comments (6)

wulfsolter avatar wulfsolter commented on July 29, 2024 1

Impressive. Most impressive. Obi-Wan has taught you well. You have controlled your fear. Now, release your anger. Only your hatred can destroy me

from angular2-signaturepad.

lathonez avatar lathonez commented on July 29, 2024

Hey,

We recommend using ng-cli (as is recommended by the angular team).

If you insist on using something else. you'll need to raise issues on that repo. Your problem is "I don't know how to include modules with angular quick start".

StackOverflow is the appropriate resource for these kinds of questions isn't it?

See also #12.

from angular2-signaturepad.

cyberjared avatar cyberjared commented on July 29, 2024

Don't forget that signature_pad is a dependency of this project, so you have to add that also

from angular2-signaturepad.

animishas avatar animishas commented on July 29, 2024

@technamrit : Were you able to resolve this issue? I am kinda having the same issue and I am using angular quickstart. Please reply. thanks

from angular2-signaturepad.

smuthuvels avatar smuthuvels commented on July 29, 2024

I was getting some exception while using "angular2-signaturepad" package. So i have tried to "angular2-signature-pad" package. its working for me.
Package.json:
"angular2-signature-pad": "1.0.2"

system.config.js

 map: {
            'angular2-signature-pad': 'npm:angular2-signature-pad/bundles/angular2-signature-pad.umd.min.js',
            'signature_pad': 'npm:signature_pad'
},
packages: {
            'angular2-signature-pad': { main: '', defaultExtension: 'js' },
            'signature_pad': { main: 'dist/signature_pad', defaultExtension: 'js' }
}

app.module.ts

import { SignaturePadModule } from 'angular2-signature-pad';

@NgModule({
    imports: [
SignaturePadModule]
})

test.ts:
import { SignaturePadModule } from 'angular2-signature-pad';

```

onSaveHandler(data: any) {
console.log(data);
}

onClearHandler() {
    console.log('On Clear click');
}
**test.html:**
<signature-pad (onSave)="onSaveHandler($event)"
                                       (onClear)="onClearHandler()"
                                       [width]="500"
                                       [height]="300"
                                       [hideFooter]="false"
                                       [label]="label"></signature-pad>

Reference URL: [(https://next.plnkr.co/edit/32nEL74I48dDDWermSWQ?p=preview&utm_source=legacy&utm_medium=banner&utm_campaign=next&preview)]

from angular2-signaturepad.

chirag115 avatar chirag115 commented on July 29, 2024

If anyone still using SystemJS, Following is my solution:

map: {
	'angular2-signaturepad': 'npm:angular2-signaturepad/bundles/angular2-signaturepad.umd.js',
    'signature_pad': 'npm:signature_pad/dist/signature_pad.js'
}
packages: {
    'angular2-signaturepad': { defaultExtension: 'js', format: 'cjs'  },
    'signature_pad': { defaultExtension: 'js' }
}

from angular2-signaturepad.

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.