Created
March 21, 2022 15:36
-
-
Save lorenzojkrl/1db084e45f4b098a91e6eccb9f6b560d to your computer and use it in GitHub Desktop.
Declarative
This file contains hidden or 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/core'; | |
import { TodoService } from './todo.service'; | |
@Component({ | |
selector: 'my-app', | |
templateUrl: './app.component.html', | |
styleUrls: ['./app.component.css'], | |
}) | |
export class AppComponent { | |
data$ = this.todoService.todo$; | |
constructor(private todoService: TodoService) {} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment