Load dynamic page using string

I’m using Framework7 v2.0.5 to change my existing project which uses Framework7 v1.6.4.

In v1.6.4, I can create a new page using following route code:

content: newPageContent,
animatePages: true

Above code is suggested in here.

However this method doesn’t work in v2.0.5. When I use this method, nothing happens to mainView and there’s no error in console.

Is there anyone know how to do this in the new version? Thanks a lot.