CopyPastor

Detecting plagiarism made easy.

Score: 0.8856443495719464; Reported for: String similarity Open both answers

Possible Plagiarism

Plagiarized on 2017-05-30
by Arvind Audacious

Original Post

Original - Posted on 2016-03-28
by Thierry Templier



            
Present in both answers; Present only in the new answer; Present only in the old answer;


You can't have a component with two component decorators (@Component). You need to create two different classes for this:

<!-- begin snippet: js hide: false console: true babel: false -->
<!-- language: lang-js -->

@Component({ selector: 'app', template: `<h1>Title Here</h1>` }) export class AppComponent { }
@Component({ selector: 'appTwo', template: `<h1>Another Title Here</h1>` }) export class AppComponent1 { }
<!-- end snippet -->

You can't have a component with two component decorators (@Component). You need to create two different classes for this:
@Component({ selector: 'app', template: `<h1>Title Here</h1>` }) export class AppComponent { } @Component({ selector: 'appTwo', template: `<h1>Another Title Here</h1>` }) export class AppComponent1 { }
Then you can use the approach from the Gunter's answer...

        
Present in both answers; Present only in the new answer; Present only in the old answer;