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">
<ion-header-bar>
<div class="buttons">
<button ng-hide="isAdd" ng-click="goBack()" class="button button-icon icon ion-arrow-left-c"></button>
</div>
<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>
</ion-header-bar>
<ion-content>
<div class="list list-inset">
<label class="item item-input">
<input type="text" placeholder="Name" ng-model="birthday.Name">
</label>
</div>
<div class="padding">
<button ng-click="saveBirthday()" class="button button-block button-positive activated">Save</button>
</div>
</ion-content>
</ion-modal-view>
Should this work?
How can I back to index.html from modal?
$scope.myGoBack = function() {
$scope.modal.remove();
}