Side menu appears only after refresh

I want to create a mobile app with Ionic framework (my first one). I’ve created expense.html and expense-detail.html. The sidemenu appears correctly on the expense.html but on the “child” page it appears only after refresh.
This is my first post and I was unable to see how can I paste the code without it “running”. Here is my stackoverflow link in which you will find my question:
And the github repository