All Projects → matheusdavidson → Angular Cropperjs

matheusdavidson / Angular Cropperjs

CropperJS integration for Angular +6

Programming Languages

typescript
32286 projects

Projects that are alternatives of or similar to Angular Cropperjs

Ngautocomplete
Light-weight autocomplete component for Angular.
Stars: ✭ 52 (-40.91%)
Mutual labels:  angular-component, angular2, angular4
Ngx Avatar
Universal avatar component for angular 2+ applications makes it possible to fetch / generate avatar from different sources
Stars: ✭ 210 (+138.64%)
Mutual labels:  angular-component, angular2, angular4
Angular File Uploader
Angular file uploader is an Angular 2/4/5/6/7/8/9/10 + file uploader module with Real-Time Progress Bar, Responsive design, Angular Universal Compatibility, localization and multiple themes which includes Drag and Drop and much more.
Stars: ✭ 92 (+4.55%)
Mutual labels:  image, angular2, angular4
Angular Notifier
A well designed, fully animated, highly customizable, and easy-to-use notification library for your Angular application.
Stars: ✭ 175 (+98.86%)
Mutual labels:  angular-component, angular2, angular4
Ng Snotify
Angular 2+ Notification Center
Stars: ✭ 304 (+245.45%)
Mutual labels:  angular-component, angular2, angular4
Angulartics2
Vendor-agnostic analytics for Angular2 applications.
Stars: ✭ 963 (+994.32%)
Mutual labels:  angular2, angular4
Angular2 Social Login
Simple client side social authentication for Angular2 application.
Stars: ✭ 34 (-61.36%)
Mutual labels:  angular2, angular4
Awesome Angular
📄 A curated list of awesome Angular resources
Stars: ✭ 8,160 (+9172.73%)
Mutual labels:  angular2, angular4
Egeo
EGEO is the open-source UI library used to build Stratio's UI. It includes UI Components, Utilities, Services and much more to build user interfaces quickly and with ease. The library is distributed in AoT mode.
Stars: ✭ 69 (-21.59%)
Mutual labels:  angular2, angular4
Ngx Papaparse
Papa Parse wrapper for Angular
Stars: ✭ 83 (-5.68%)
Mutual labels:  angular2, angular4
Angular Redux Ngrx Examples
Sample projects with Angular (4.x) + Angular CLI + ngrx (Redux) + Firebase
Stars: ✭ 73 (-17.05%)
Mutual labels:  angular2, angular4
Ngvas
An Angular2/Angular4 library for HTML Canvas.
Stars: ✭ 31 (-64.77%)
Mutual labels:  angular2, angular4
Nebular
💥 Customizable Angular UI Library based on Eva Design System 🌚✨Dark Mode
Stars: ✭ 7,368 (+8272.73%)
Mutual labels:  angular2, angular4
Angular Tree Component
A simple yet powerful tree component for Angular (>=2)
Stars: ✭ 1,031 (+1071.59%)
Mutual labels:  angular2, angular4
Bootstrap
Open Source JS plugins
Stars: ✭ 13 (-85.23%)
Mutual labels:  angular2, angular4
Ng2 Dnd
Angular 2 Drag-and-Drop without dependencies
Stars: ✭ 861 (+878.41%)
Mutual labels:  angular2, angular4
Ngx Lazy Load Images
Image lazy load library for Angular 2+
Stars: ✭ 77 (-12.5%)
Mutual labels:  angular2, angular4
Angular2
Angular 2 Seed
Stars: ✭ 75 (-14.77%)
Mutual labels:  angular2, angular4
Paperadmin
A flat admin dashboard using Angular JS 2/4
Stars: ✭ 80 (-9.09%)
Mutual labels:  angular2, angular4
Angular Websocket
↖️ The missing Angular WebSocket module for connecting client applications to servers by @AngularClass
Stars: ✭ 1,242 (+1311.36%)
Mutual labels:  angular2, angular4

angular-cropperjs

CropperJS integration for Angular +6

How to use

1- Install the library:

$ npm install angular-cropperjs --save

2- Import and load AngularCropperjsModule in the module you want to use, for example AppModule:

import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';

import { AppComponent } from './app.component';

//
// Import angular-cropperjs
import { AngularCropperjsModule } from 'angular-cropperjs';

@NgModule({
    declarations: [AppComponent],
    imports: [
        BrowserModule,

        //
        // Load angular-cropperjs
        AngularCropperjsModule
    ],
    providers: [],
    bootstrap: [AppComponent]
})
export class AppModule {}

3- Use the component in your template like this:

<!-- You can now use angular-cropper component in app.component.html -->
<angular-cropper [cropperOptions]="config" [imageUrl]="imageUrl"></angular-cropper>

Using CropperJS methods:

Use @ViewChild in your component to get the element:

In your app.component.html

<angular-cropper #angularCropper ..></angular-cropper>

And in your app.component.ts

//
// Import CropperComponent
import { CropperComponent } from 'angular-cropperjs';

//
// Get with @ViewChild
@ViewChild('angularCropper') public angularCropper: CropperComponent;

Then just call the CropperJS method you want:

anywhere in your app.component.ts

//
// Lets try to zoom
this.angularCropper.cropper.zoom(0.1);

Development

This project was generated with Angular CLI version 6.0.8.

Development server

Run ng serve for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.

Code scaffolding

Run ng generate component component-name to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module.

Build

Run ng build to build the project. The build artifacts will be stored in the dist/ directory. Use the --prod flag for a production build.

Running unit tests

Run ng test to execute the unit tests via Karma.

Running end-to-end tests

Run ng e2e to execute the end-to-end tests via Protractor.

Further help

To get more help on the Angular CLI use ng help or go check out the Angular CLI README.

License

MIT © Matheus Davidson

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].