# Ionic Swipe Cards - without 'start-card'?

**URL:** <https://forum.ionicframework.com/t/ionic-swipe-cards-without-start-card/29610>\
**Category:** uncategorized\
**Created:** [July 30, 2015, 9:07pm UTC](https://forum.ionicframework.com/t/ionic-swipe-cards-without-start-card/29610 "2015-07-30T21:07:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![soconnor](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/soconnor/32/90712_2.png) [@soconnor](https://forum.ionicframework.com/u/soconnor)\
**Post date:** [July 30, 2015, 9:07pm UTC](https://forum.ionicframework.com/t/ionic-swipe-cards-without-start-card/29610/1 "2015-07-30T21:07:21Z")

</div>

Hi,

I’m currently using the ionic\_swipecards.js and a modified js for controllers. All is going well, I’m new to the world of Ionic/Angular etc.

Basically what I’m trying to do now is to load a card when the page loads? I’ve removed the start swipe card from the index.html and added some code in my CardsCtrl controller like this:

```
$scope.$on('$ionicView.loaded', function(){
		$scope.addCards();
});	

```

From the logs the card gets loaded, but not pushed? I’ve no idea where to go from here. I’ve tried a number of trial and errors inside the above function but nothing worked. I cannot get a card to appear. Adding back in the start-card and swiping it works perfectly.

Any help greatly appreciated!!

---

<div class="post-metadata">

**Author:** ![soconnor](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/soconnor/32/90712_2.png) [@soconnor](https://forum.ionicframework.com/u/soconnor)\
**Post date:** [July 30, 2015, 9:25pm UTC](https://forum.ionicframework.com/t/ionic-swipe-cards-without-start-card/29610/2 "2015-07-30T21:25:24Z")

</div>

After 2 hours of messing around, finally got it. Erased $scope.$on code.

Added an ng-init where the ng-controller=“CardsCtrl” is in the index.html. Here’s the code:

```
<ion-pane ng-controller="CardsCtrl" ng-init="init()">

```

Then add the addCards() in the init function of the controller js:

```
$scope.init = function () {
  		$scope.addCards();
}; 

```

Sometimes you just need to spell it out 😄
