Angular Module

angular.module(‘ionicApp’, [‘ionic’])

.config(function($stateProvider, $urlRouterProvider) {

  $stateProvider

    .state(‘home’, {

      url: “/home”,

      templateUrl: “home.html”,

      controller: “HomeTabCtrl”,

    })

   $urlRouterProvider.otherwise(“/home”);

})

.controller(‘HomeTabCtrl’, function($scope, $ionicModal) {

  

    // Load the modal from the given template URL

    $ionicModal.fromTemplateUrl(‘modal.html’, {

      scope: $scope,

      animation: ‘slide-in-up’

    }).then(function(modal) { $scope.modal = modal; });

  

    $scope.modal2 = $ionicModal.fromTemplate(‘

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s