Created
March 22, 2016 15:21
-
-
Save gbrennon/d4546f19c74365de4e34 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
angular.module('suapraia', ['ionic', 'ngCordova', 'suapraia.controllers', 'suapraia.beaches']) | |
.run(function($ionicPlatform) { | |
$ionicPlatform.ready(function() { | |
if (window.cordova && window.cordova.plugins.Keyboard) { | |
cordova.plugins.Keyboard.hideKeyboardAccessoryBar(true); | |
cordova.plugins.Keyboard.disableScroll(true); | |
} | |
if (window.StatusBar) { | |
StatusBar.styleDefault(); | |
} | |
}); | |
}) | |
.config(function($stateProvider, $urlRouterProvider, $ionicConfigProvider) { | |
$ionicConfigProvider.backButton.text('Voltar').previousTitleText(false); | |
$ionicConfigProvider.navBar.alignTitle('center'); | |
$stateProvider | |
.state('app', { | |
url: '/app', | |
abstract: true, | |
templateUrl: 'templates/menu.html', | |
controller: 'AppCtrl' | |
}) | |
.state('app.home', { | |
url: '/home', | |
views: { | |
'menuContent': { | |
templateUrl: 'templates/home.html' | |
} | |
} | |
}) | |
.state('app.trends', { | |
url: '/trends', | |
views: { | |
'menuContent': { | |
templateUrl: 'templates/trends.html' | |
} | |
} | |
}) | |
.state('app.activities', { | |
url: '/activities', | |
views: { | |
'menuContent': { | |
templateUrl: 'templates/activities.html' | |
} | |
} | |
}) | |
.state('app.beaches', { | |
url: '/beaches', | |
views: { | |
'menuContent': { | |
templateUrl: 'templates/beaches/menu.html' | |
} | |
} | |
}) | |
.state('app.beaches.list', { | |
url: '/list', | |
views: { | |
'listView': { | |
templateUrl: 'templates/beaches/list.html' | |
} | |
} | |
}) | |
.state('app.beaches.map', { | |
url: '/map', | |
views: { | |
'mapView': { | |
templateUrl: 'templates/beaches/map.html' | |
} | |
} | |
}); | |
$urlRouterProvider.otherwise('/app/home'); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ion-view view-title="<img src='img/logo.png'>"> | |
<ion-content has-bouncing="false" class="has-tabs beaches-list"> | |
<div class="search-box list list-inset"> | |
<label class="item item-input"> | |
<i class="icon ion-search placeholder-icon"></i> | |
<input type="text" placeholder="Busque por Praia"> | |
</label> | |
</div> | |
<ion-slide-box class="slide-beaches" > | |
<ion-slide class="slide-beach" ng-repeat="beach in vm.beaches"> | |
<div class="card card-green"> | |
<div class="card-picture"> | |
<img src="" style="background-color: grey;"> | |
<div class="smile"></div> | |
</div> | |
<h2>{{beach.name}}</h2> | |
<ul class="activities activities-preview"> | |
<li class="activity activity-sup" ng-repeat="activity in beach.activities" ng-class="'activity-' + activity"> | |
</li> | |
</ul> | |
</div> | |
</ion-slide> | |
</ion-slide-box> | |
</ion-content> | |
</ion-view> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ion-view> | |
<ion-content class="has-tabs"> | |
<map></map> | |
</ion-content> | |
</ion-view> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment