This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
angular.module('mlz.openurl', []) | |
.factory('OpenUrlService', ['$log', '$location', '$rootScope', '$ionicHistory', function ($log, $location, $rootScope, $ionicHistory) { | |
var openUrl = function (url) { | |
$log.debug('Handling open URL ' + url); | |
// Stop it from caching the first view as one to return when the app opens | |
$ionicHistory.nextViewOptions({ | |
historyRoot: true, |