VS Code + Ionic - Intellisense works inside constructor but not anywhere else

So I am new to Ionic3, typescript, VS Code stack. I can’t seem to find anything on this. What am I doing wrong?

EDIT: I failed to realise this was a function expression and not declaration.

![00 PM|524x319](upload://aPFEDogwn0RTkv8OiTmv31BR9gK.png PM|690x340](/uploads/default/original/3X/9/4/942ad0b5b8b259e5d271f87a9d013892fd46c4ab.png)

Did you install any plugins to enable Intellisense for Ionic?

i don’t have this problem

Maybe is the function code isn’t correct ? why do u do test =function ? better to write directly in typescript

Yes I just posted this on stackoverflow and was quickly corrected. I did not notice the function expression there. Thank you.

see https://www.typescriptlang.org/docs/handbook/functions.html