Back button not working with modal

Hi All,

This is my modal inside my index.html

<!-- modal -->
	<script id="add-or-edit.html" type="text/ng-template">
		<ion-modal-view ng-app="starter">
			<div class="buttons">
				<button ng-hide="isAdd" ng-click="goBack()" class="button button-icon icon ion-arrow-left-c"></button>
			<h1 class="title">{{ action }} hashtag</h1> 
			<div class="buttons">
				<button ng-hide="isAdd" ng-click="deleteBirthday()" class="button button-icon icon ion-trash-a"></button>
			<div class="list list-inset">
			  <label class="item item-input">
			  <input type="text" placeholder="Name" ng-model="birthday.Name">
			<div class="padding">
			  <button ng-click="saveBirthday()" class="button button-block button-positive activated">Save</button>

Should this work?
How can I back to index.html from modal?

$scope.myGoBack = function() {

Fixed it using:

$scope.closeModal = function() {

Sorry I was thinking about modal…