Skip to content

Commit

Permalink
Added the data object inside app.component.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
ImsirovicAjdin committed Sep 7, 2019
1 parent 5bc7107 commit 5171e7a
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 14 deletions.
2 changes: 1 addition & 1 deletion src/app/app.component.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<hello name="{{ name }}"></hello>

<p>
Start editing to see some magic happen :)
</p>
23 changes: 22 additions & 1 deletion src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,26 @@ import { Component } from '@angular/core';
styleUrls: [ './app.component.css' ]
})
export class AppComponent {
name = 'Angular';
frontends = [
{
name: 'Angular',
details: {
type: 'framework',
versions: {
current: 8,
previous: 7
}
}
},
{
name: 'React',
details: {
type: 'library',
versions: {
current: 16.9,
previous: 16.8
}
}
}
];
}
3 changes: 1 addition & 2 deletions src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,10 @@ import { BrowserModule } from '@angular/platform-browser';
import { FormsModule } from '@angular/forms';

import { AppComponent } from './app.component';
import { HelloComponent } from './hello.component';

@NgModule({
imports: [ BrowserModule, FormsModule ],
declarations: [ AppComponent, HelloComponent ],
declarations: [ AppComponent ],
bootstrap: [ AppComponent ]
})
export class AppModule { }
10 changes: 0 additions & 10 deletions src/app/hello.component.ts

This file was deleted.

0 comments on commit 5171e7a

Please sign in to comment.