how to use service variables in component angular 10 code example Example: angular import service import { <service name>Service } from '../<service path>';