Skip to content

Commit

Permalink
refactor: remove app prefex from components
Browse files Browse the repository at this point in the history
  • Loading branch information
sibiraj-s committed Apr 21, 2020
1 parent b280769 commit bbe3daa
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Import [font-awesome](https://github.com/FortAwesome/Font-Awesome) into your app
Then in HTML

```html
<app-ngx-editor [placeholder]="'Enter text here...'" [spellcheck]="true" [(ngModel)]="htmlContent"></app-ngx-editor>
<ngx-editor [placeholder]="'Enter text here...'" [spellcheck]="true" [(ngModel)]="htmlContent"></ngx-editor>
```

For `ngModel` to work, You must import `FormsModule` from `@angular/forms`
Expand Down
2 changes: 1 addition & 1 deletion src/app/app.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ <h6>A Simple WYSIWYG Editor for Angular 6 Applications.</h6>
</div>

<div class="editor block">
<app-ngx-editor [config]="editorConfig" [spellcheck]="true" [(ngModel)]="htmlContent"></app-ngx-editor>
<ngx-editor [config]="editorConfig" [spellcheck]="true" [(ngModel)]="htmlContent"></ngx-editor>
</div>

<div *ngIf="htmlContent" class="htmlblock block">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Component } from '@angular/core';
import { MessageService } from '../common/services/message.service';

@Component({
selector: 'app-ngx-editor-message',
selector: 'ngx-editor-message',
templateUrl: './ngx-editor-message.component.html',
styleUrls: ['./ngx-editor-message.component.scss']
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { MessageService } from '../common/services/message.service';
import * as Utils from '../common/utils/ngx-editor.utils';

@Component({
selector: 'app-ngx-editor-toolbar',
selector: 'ngx-editor-toolbar',
templateUrl: './ngx-editor-toolbar.component.html',
styleUrls: ['./ngx-editor-toolbar.component.scss'],
providers: [PopoverConfig]
Expand Down
6 changes: 3 additions & 3 deletions src/app/ngx-editor/ngx-editor.component.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<div class="ngx-editor" id="ngxEditor" [style.width]="config['width']" [style.minWidth]="config['minWidth']" tabindex="0"
(focus)="onEditorFocus()" #ngxEditor>

<app-ngx-editor-toolbar [config]="config" (execute)="executeCommand($event)"></app-ngx-editor-toolbar>
<ngx-editor-toolbar [config]="config" (execute)="executeCommand($event)"></ngx-editor-toolbar>

<!-- text area -->
<div class="ngx-wrapper" #ngxWrapper>
Expand All @@ -13,7 +13,7 @@
<span class="ngx-editor-placeholder">{{ placeholder || config['placeholder'] }}</span>
</div>

<app-ngx-editor-message></app-ngx-editor-message>
<app-ngx-grippie *ngIf="resizer === 'stack'"></app-ngx-grippie>
<ngx-editor-message></ngx-editor-message>
<ngx-grippie *ngIf="resizer === 'stack'"></ngx-grippie>

</div>
2 changes: 1 addition & 1 deletion src/app/ngx-editor/ngx-editor.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { ngxEditorConfig } from './common/ngx-editor.defaults';
import * as Utils from './common/utils/ngx-editor.utils';

@Component({
selector: 'app-ngx-editor',
selector: 'ngx-editor',
templateUrl: './ngx-editor.component.html',
styleUrls: ['./ngx-editor.component.scss'],
providers: [{
Expand Down
2 changes: 1 addition & 1 deletion src/app/ngx-editor/ngx-grippie/ngx-grippie.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Component, HostListener } from '@angular/core';
import { NgxEditorComponent } from '../ngx-editor.component';

@Component({
selector: 'app-ngx-grippie',
selector: 'ngx-grippie',
templateUrl: './ngx-grippie.component.html',
styleUrls: ['./ngx-grippie.component.scss']
})
Expand Down
4 changes: 2 additions & 2 deletions tslint.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@
"directive-selector": [
true,
"attribute",
"app",
"",
"camelCase"
],
"component-selector": [
true,
"element",
"app",
"",
"kebab-case"
],
"import-blacklist": [
Expand Down

0 comments on commit bbe3daa

Please sign in to comment.