{"action":"created","issue":{"url":"https://api.github.com/repos/Urigo/meteor-ionic/issues/38","labels_url":"https://api.github.com/repos/Urigo/meteor-ionic/issues/38/labels{/name}","comments_url":"https://api.github.com/repos/Urigo/meteor-ionic/issues/38/comments","events_url":"https://api.github.com/repos/Urigo/meteor-ionic/issues/38/events","html_url":"https://github.com/Urigo/meteor-ionic/issues/38","id":56944947,"number":38,"title":"Template Variables Treated As Strings","user":{"login":"panthongw","id":857822,"avatar_url":"https://avatars.githubusercontent.com/u/857822?v=3","gravatar_id":"","url":"https://api.github.com/users/panthongw","html_url":"https://github.com/panthongw","followers_url":"https://api.github.com/users/panthongw/followers","following_url":"https://api.github.com/users/panthongw/following{/other_user}","gists_url":"https://api.github.com/users/panthongw/gists{/gist_id}","starred_url":"https://api.github.com/users/panthongw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/panthongw/subscriptions","organizations_url":"https://api.github.com/users/panthongw/orgs","repos_url":"https://api.github.com/users/panthongw/repos","events_url":"https://api.github.com/users/panthongw/events{/privacy}","received_events_url":"https://api.github.com/users/panthongw/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-02-08T09:08:22Z","updated_at":"2015-02-09T02:38:16Z","closed_at":"2015-02-09T02:38:16Z","body":"I am using the latest package (v0.3.0) and the template variables, such as `[[post.title]]` and `[[post.description]]`, are treated as strings instead of the variable value. \r\n\r\nMy setup is using a tab view and below are the details:\r\n\r\n```\r\nPosts = new Mongo.Collection(\"posts\");\r\n\r\nangular.module('app', ['angular-meteor', 'ui.router', 'ionic'])\r\n\r\n.controller('PostCtrl', ['$scope', '$meteorCollection', '$state', '$ionicModal',\r\n  function ($scope, $meteorCollection, $state, $ionicModal) {\r\n    $scope.Posts = $meteorCollection(Posts);\r\n}])\r\n\r\n.config(['$stateProvider', '$urlRouterProvider',\r\nfunction($stateProvider, $urlRouterProvider){\r\n  $urlRouterProvider.otherwise('/');\r\n\r\n  $stateProvider\r\n.state('tabs', {\r\n    url: '/tab',\r\n    abstract: true,\r\n    views: {\r\n      main: {\r\n        templateUrl: 'tabs.html'\r\n      }\r\n    }\r\n\r\n  })\r\n\r\n  .state('tabs.feed', {\r\n    url: '/feed',\r\n    views: {\r\n      feed: {\r\n        templateUrl: 'feed.html',\r\n        controller: 'PostCtrl'\r\n      }\r\n    }\r\n  })\r\n\r\n  .state('tabs.help', {\r\n    url: '/help',\r\n    views: {\r\n      help: {\r\n        templateUrl: 'help.html'\r\n      }\r\n    }\r\n  })\r\n}])\r\n```\r\n\r\nHere are the relevant templates (`feed.html`, `tabs.html`):\r\n```\r\n<template name=\"feed.html\">\r\n  <ion-view title=\"Feed\">\r\n    <ion-nav-buttons side=\"right\">\r\n      <button class=\"button button-icon icon ion-compose\" ng-click=\"openNewPostModal()\"></button>\r\n    </ion-nav-buttons>\r\n    <ion-content class=\"has-header\">\r\n      <ion-list>\r\n        <ion-item ng-repeat=\"post in Posts\">\r\n          <h2>[[post.title]]</h2>\r\n          <p>[[post.description]]</p>\r\n        </ion-item>\r\n      </ion-list>\r\n    </ion-content>\r\n  </ion-view>\r\n</template>\r\n```\r\n\r\n```\r\n<template name=\"tabs.html\">\r\n  <ion-tabs class=\"tabs-positive\">\r\n    <ion-tab icon=\"ion-checkmark\" ui-sref=\"tabs.feed\">\r\n      <ion-nav-view name=\"feed\"></ion-nav-view>\r\n    </ion-tab>\r\n    <ion-tab icon=\"ion-help\" ui-sref=\"tabs.help\">\r\n      <ion-nav-view name=\"help\"></ion-nav-view>\r\n    </ion-tab>\r\n  </ion-tabs>\r\n</template>\r\n\r\n```\r\n\r\nLooking at the [Meteor-ionic-example] (https://github.com/netanelgilad/meteor-ionic-example), I notice that `ng-include` is being used with `tpl` files. Based on my setup, I cannot use ng-include and would prefer to define my template in the router. \r\n\r\nI have tried the following with the necessary changes (curly braces instead of square, removed `template name=\"..\"`, renamed file to `tpl`), which did not work:\r\n```\r\n.state('tabs.feed', {\r\n    url: '/feed',\r\n    views: {\r\n      feed: {\r\n        templateUrl: '\"feed.tpl\"',\r\n        controller: 'PostCtrl'\r\n      }\r\n    }\r\n  })\r\n```\r\n\r\nCould you please provide me with any guidance on how I could update the app with the current tab setup.\r\n\r\nThanks"},"comment":{"url":"https://api.github.com/repos/Urigo/meteor-ionic/issues/comments/73449617","html_url":"https://github.com/Urigo/meteor-ionic/issues/38#issuecomment-73449617","issue_url":"https://api.github.com/repos/Urigo/meteor-ionic/issues/38","id":73449617,"user":{"login":"Urigo","id":1297448,"avatar_url":"https://avatars.githubusercontent.com/u/1297448?v=3","gravatar_id":"","url":"https://api.github.com/users/Urigo","html_url":"https://github.com/Urigo","followers_url":"https://api.github.com/users/Urigo/followers","following_url":"https://api.github.com/users/Urigo/following{/other_user}","gists_url":"https://api.github.com/users/Urigo/gists{/gist_id}","starred_url":"https://api.github.com/users/Urigo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Urigo/subscriptions","organizations_url":"https://api.github.com/users/Urigo/orgs","repos_url":"https://api.github.com/users/Urigo/repos","events_url":"https://api.github.com/users/Urigo/events{/privacy}","received_events_url":"https://api.github.com/users/Urigo/received_events","type":"User","site_admin":false},"created_at":"2015-02-09T02:38:16Z","updated_at":"2015-02-09T02:38:16Z","body":"@panthongw your repo has been fixed.\r\nI charge by the hour ;)\r\n\r\nHope it helped"}}