Skip to content

interface directive make template not load #2

@vjau

Description

@vjau

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions