Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
@Injectable({ providedIn: 'root' })
export class UserService {
constructor(private userStore: UserStore) {}
getUser() {
const fakeUser = {
name: 'Netanel',
featureFlag: {
a: true,
b: false
}
};
return timer(300).pipe(
mapTo(fakeUser),
tap(user => this.userStore.update(user))
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment