Skip to content

Commit

Permalink
feat(upcrop): generate upcrop component
Browse files Browse the repository at this point in the history
  • Loading branch information
matheusdavidson committed Aug 10, 2018
1 parent 3e2b88d commit 8c3f186
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 19 deletions.
10 changes: 5 additions & 5 deletions projects/angular-upcrop/src/lib/angular-upcrop.module.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { NgModule } from '@angular/core';
import { AngularUpcropComponent } from './angular-upcrop.component';
import { UpcropComponent } from './upcrop/upcrop.component';

@NgModule({
imports: [
],
declarations: [AngularUpcropComponent],
exports: [AngularUpcropComponent]
imports: [
],
declarations: [UpcropComponent],
exports: [UpcropComponent]
})
export class AngularUpcropModule { }
Empty file.
3 changes: 3 additions & 0 deletions projects/angular-upcrop/src/lib/upcrop/upcrop.component.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<p>
upcrop works!
</p>
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';

import { AngularUpcropComponent } from './angular-upcrop.component';
import { UpcropComponent } from './upcrop.component';

describe('AngularUpcropComponent', () => {
let component: AngularUpcropComponent;
let fixture: ComponentFixture<AngularUpcropComponent>;
describe('UpcropComponent', () => {
let component: UpcropComponent;
let fixture: ComponentFixture<UpcropComponent>;

beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ AngularUpcropComponent ]
declarations: [ UpcropComponent ]
})
.compileComponents();
}));

beforeEach(() => {
fixture = TestBed.createComponent(AngularUpcropComponent);
fixture = TestBed.createComponent(UpcropComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,10 @@ import { Component, OnInit } from '@angular/core';

@Component({
selector: 'angular-upcrop',
template: `
<p>
angular-upcrop works!
</p>
`,
styles: []
templateUrl: './upcrop.component.html',
styleUrls: ['./upcrop.component.css']
})
export class AngularUpcropComponent implements OnInit {
export class UpcropComponent implements OnInit {

constructor() { }

Expand Down
2 changes: 1 addition & 1 deletion projects/angular-upcrop/src/public_api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
*/

export * from './lib/angular-upcrop.service';
export * from './lib/angular-upcrop.component';
export * from './lib/upcrop/upcrop.component';
export * from './lib/angular-upcrop.module';

0 comments on commit 8c3f186

Please sign in to comment.