This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Import Component from React module | |
import React { Component } from 'react'; | |
// Component Class | |
export default Class AppComponent extends Component { | |
constructor() { | |
super(); | |
this.state = { | |
title: 'Hello World' | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Import Component from Angular module | |
import { Component } from '@angular/core'; | |
// Component decorator | |
@Component({ | |
selector: 'app', | |
templateUrl: './app.component.html', // your html will be here | |
styleUrls: ['./app.component.css'] | |
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<li ng-repeat="item in items">{{item}}</li> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
return this.props.items.map( (item) => { | |
return <li>{item}</li> | |
}) |