-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
Hi,
very strange bug while doing the tutorial.
At step 2, we are creating a constructor which is population the "this.parties" class member.
Since i know that typescript doesn't like to refer to an undefined variable, i created an interface like this:
interface IParty {
name : string;
description : string;
}And i put
parties : IParty[]in the class
But then the template didn't load anymore. No error message, no nothing, just a blank page.
I started to remove stuff, and finally found the culprit : the interface directive !
If i write it like that :
class Socially{}
interface IParty {
name : string;
description : string;
}All is well, the template loads.
But if i put the interface directive BEFORE the class, like this:
interface IParty {
name : string;
description : string;
}
class Socially{}The template doesn't load anymore.
VERRRRY strange !
Metadata
Metadata
Assignees
Labels
No labels