Skip to content

Commit

Permalink
Remove component initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
emiryumak committed Jun 27, 2023
1 parent 769e654 commit fce9dae
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 12 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@rilke/cli",
"version": "16.0.3",
"version": "16.0.4",
"description": "A Schematic for Rilke Architect",
"scripts": {
"build": "tsc -p tsconfig.json",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Component, OnInit<% if(!!viewEncapsulation) { %>, ViewEncapsulation<% }%><% if(changeDetection !== 'Default') { %>, ChangeDetectionStrategy<% }%> } from '@angular/core';
import { Component<% if(!!viewEncapsulation) { %>, ViewEncapsulation<% }%><% if(changeDetection !== 'Default') { %>, ChangeDetectionStrategy<% }%> } from '@angular/core';

@Component({<% if(!skipSelector) {%>
selector: '<%= selector %>',<%}%><% if(inlineTemplate) { %>
Expand All @@ -14,8 +14,4 @@ import { Component, OnInit<% if(!!viewEncapsulation) { %>, ViewEncapsulation<% }
encapsulation: ViewEncapsulation.<%= viewEncapsulation %><% } if (changeDetection !== 'Default') { %>,
changeDetection: ChangeDetectionStrategy.<%= changeDetection %><% } %>
})
export class <%= classify(className) %> implements OnInit {
constructor() {}

ngOnInit() {}
}
export class <%= classify(className) %> {}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Component, OnInit<% if(!!viewEncapsulation) { %>, ViewEncapsulation<% }%><% if(changeDetection !== 'Default') { %>, ChangeDetectionStrategy<% }%> } from '@angular/core';
import { Component<% if(!!viewEncapsulation) { %>, ViewEncapsulation<% }%><% if(changeDetection !== 'Default') { %>, ChangeDetectionStrategy<% }%> } from '@angular/core';

@Component({<% if(!skipSelector) { %>
selector: '<%= selector %>',<% } %><% if(inlineTemplate) { %>
Expand All @@ -14,8 +14,5 @@ import { Component, OnInit<% if(!!viewEncapsulation) { %>, ViewEncapsulation<% }
encapsulation: ViewEncapsulation.<%= viewEncapsulation %><% } if (changeDetection !== 'Default') { %>,
changeDetection: ChangeDetectionStrategy.<%= changeDetection %><% } %>
})
export class <%= classify(className) %> implements OnInit {
constructor() {}

ngOnInit() {}
export class <%= classify(className) %> {
}

0 comments on commit fce9dae

Please sign in to comment.