How to create a popup out of an html page with Template7

I can’t figure how to do make it work. This is the code I have.

var app = new Framework7({
  root: '#app',
  theme: 'ios',
  pushState: true,
  routes: [
    {
      path: '/',
      url: 'index.html'
    },
    {
      path: '/popup/',
      async: function(routeTo, routeFrom, resolve, reject) {
        app.request.postJSON('http://google.com', function (data) {
          console.log(routeTo);
          resolve(
            {
              templateUrl: 'new-page.html'
            },
            {
              context: {
                albums: response.data
              }
            }
          );
        });
      }
    }
  ]
});