Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- export const USER = {
- 'name':"pepe",
- 'surname': "Martin",
- }
- public user: User;
- constructor(private userService: UserService) { }
- ngOnInit(): void {
- this.userService.me().subscribe((user: User) => {
- this.user = user;
- });
- }
- import { USER } from './constants.ts';
- public me(): Observable<User> {
- return Observable.of(USER);
Add Comment
Please, Sign In to add comment