How do you get in template?


I’m just using ionic / angular for the first time. I’ve started out with the “sidemenu” app and I’m trying to pass some variables from the various states to a template. So far, in app.js I’ve got:

.state('app.example', {
  url: '/example',
  views: {
    'menuContent': {
      templateUrl: 'templates/example.html',
      data: {
        customData1: "var one",
        customData2: "var two"

and in templates/example.html I’ve got

<ion-view view-title="Example">

but that appears to be undefined. Any pointers?