Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70612

How to write a factory in ionic 2?

$
0
0

@teknofreek wrote:

in ionic 1, we wrote factories in app.js file, something like this:

.factory('AuthenticationService', ['Base64', '$http', '$rootScope', '$timeout', '$window', '$state','$ionicHistory',
function(Base64, $http, $rootScope, $timeout, $window, $state, $ionicHistory) {
//content here
});

how to write this in ionic 2?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70612

Trending Articles



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