Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 228595

Help With Abstract View

$
0
0

I have my views like this

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

.state('home', {
url: '/homePage',
views: {
  'homePageContent': {

templateUrl: 'homePage.html',
controller: 'homePageCtrl'
}
}
})

.state('addExpense', {
url: '/addExpense',
views: {
  'addExpenseContent': {

templateUrl: 'addExpense.html',
controller: 'addExpenseCtrl'
}
}
})

.state('addIncome', {
url: '/addIncome',
views: {
  'addIncomeContent': {

templateUrl: 'addIncome.html',
controller: 'addIncomeCtrl'
}
}
})

.state('editExpense', {
url: '/editExpense/:expenseID/:expenseDate/:expenseDetail/:expenseAmount',
views: {
  'editExpenseContent': {

templateUrl: 'editExpense.html',
controller: 'editExpenseCtrl'
}
}
});

$urlRouterProvider.otherwise('/homePage');

})

As you may notice I don't have an abstract state is this a problem? Please help me with the code with the abstract state. What should be in my template? Does it need a controller?


Viewing all articles
Browse latest Browse all 228595

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>