Last change
on this file since 6a3a178 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
1.0 KB
|
Line | |
---|
1 | import { Component, OnInit<% if(!!viewEncapsulation) { %>, ViewEncapsulation<% }%><% if(changeDetection !== 'Default') { %>, ChangeDetectionStrategy<% }%> } from '@angular/core';
|
---|
2 |
|
---|
3 | @Component({<% if(!skipSelector) {%>
|
---|
4 | selector: '<%= selector %>',<%}%><% if(inlineTemplate) { %>
|
---|
5 | template: `
|
---|
6 | <p>
|
---|
7 | <%= dasherize(name) %> works!
|
---|
8 | </p>
|
---|
9 | `,<% } else { %>
|
---|
10 | templateUrl: './<%= dasherize(name) %><%= type ? '.' + dasherize(type): '' %>.html',<% } if(inlineStyle) { %>
|
---|
11 | styles: [<% if(displayBlock){ %>
|
---|
12 | `
|
---|
13 | :host {
|
---|
14 | display: block;
|
---|
15 | }
|
---|
16 | `<% } %>
|
---|
17 | ]<% } else if (style !== 'none') { %>
|
---|
18 | styleUrls: ['./<%= dasherize(name) %><%= type ? '.' + dasherize(type): '' %>.<%= style %>']<% } %><% if(!!viewEncapsulation) { %>,
|
---|
19 | encapsulation: ViewEncapsulation.<%= viewEncapsulation %><% } if (changeDetection !== 'Default') { %>,
|
---|
20 | changeDetection: ChangeDetectionStrategy.<%= changeDetection %><% } %>
|
---|
21 | })
|
---|
22 | export class <%= classify(name) %><%= classify(type) %> implements OnInit {
|
---|
23 |
|
---|
24 | constructor() { }
|
---|
25 |
|
---|
26 | ngOnInit(): void {
|
---|
27 | }
|
---|
28 |
|
---|
29 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.