I was wondering if it is possible to use variable values from one component into another one without having to use the template of the first one, just need the value of the
Yes possible, you can use the @Input() method or use write get method like below
@Input()
export class Demo { const sum = 10; get SumValue() { return this.sum; } }
import-->Demo
export class Demo2 { private sum: number; this.sum = Demo.SumValue(); }