Skip to content

Instantly share code, notes, and snippets.

Created December 7, 2014 16:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/d76c437552370861143d to your computer and use it in GitHub Desktop.
Save anonymous/d76c437552370861143d to your computer and use it in GitHub Desktop.
yyebmo
<ion-view>
<ion-header-bar class="bar-positive">
<button class="button icon ion-arrow-left-c"></button>
<h1 class="title">Father</h1>
</ion-header-bar>
<div style="margin-top:100px">
<tr ng-if="$first" class="row">
<div ng-if="$index % 2==0"></tr><tr class="row">nuova riga</div>
<div class="col col-50" ng-class="{'center':$last}">
<span><a style="display:block;width:100px;height:100px;border-radius:50px;font-size:20px;color:#fff;line-height:100px;text-align:center;background:#000" href="detail">vai</a>: {{father.tipo}}</span>
</div>
<div ng-if="$last"></tr></div>
</div>
</ion-view>
<script id="detail" type="text/ng-template">
<ion-header-bar class="bar-positive">
<button class="button icon ion-arrow-left-c"></button>
<h1 class="title">Detail</h1>
</ion-header-bar>
<div style="margin-top:100px">
<p>dettaglio</p>
</div>
</script>
angular.module('starter', [
'ionic',
'ngRoute',
'starter.father',
'starter.detail',
'restangular'
])
$stateProvider.state('father', {
url: "/father",
templateUrl: "templates/father.html",
controller: "CtrlFather"
})
.state('detail', {
url: "father/detail",
templateUrl: "templates/detail.html",
controller: "CtrlDetail"
});
angular.module('starter.father', ['restangular'])
.controller('CtrlFather', ['$scope', '$http', '$location', 'Restangular', '$rootScope',
function ($scope, $http, $location, Restangular, $rootScope) {
}]);
angular.module('starter.detail', ['restangular'])
.controller('CtrlDetail', ['$scope', '$http', '$location', 'Restangular', '$rootScope',
function ($scope, $http, $location, Restangular, $rootScope) {
}]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment