extends - Typescript - How to access base class properties -


i know there others questions subject, issue not same them : checked class , use same way them. extends class class b, , can't access public properties in b. here (simplified) code :

export class {     propertya: string;      constructor() {         this.propertya = "some text";     } } 

import {a} "./a"; export class b extends {      constructor() {         super();     }       static method() {         console.log(this.propertya);     } } 

you cannot access this static method. remove static , should work.


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -