Hello Lucas!
Yes, I've missed to import the constant...
import { Hero, DR_EVIL } from './hero.model';
And in that moment I realized, I want something like Hero.DR_EVIL.
So my class looks like this now:
export class Hero {
public static DR_EVIL = new Hero(666, 'Dr. Evil');
it compiles and I can create Hero Objects, I can't use DR_EVIL
since it tells me it is not known.
So how would someone do this in TypeScript?
With best regards,
Andreas Fagschlunger
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To u