I've been working on an Angular project and I wanted to spice things up by adding a confetti animation. I found this cool animation that I'd like to incorporate into my project:
http://jsfiddle.net/vxP5q/61/?utm_source=website&utm_medium=embed&utm_campaign=vxP5q
In app.js, I created a route for the page I want to display:
$stateProvider.state('result', {
url: '/result',
templateUrl: 'templates/result_election.html',
controller: 'ElectionCtrl'
})
The page is linked to ElectionCtrl so I tried inserting the code from the fiddle into ElectionCtrl. However, it doesn't seem to be having any effect on my page. The fiddle code is included within this block:
angular.module('election',[]).controller('ElectionCtrl', function($http, $scope, $ionicPopup, $localStorage, $location, $stateParams ,$ionicLoading){})