Open Link in browser


#1

I’m trying to open a link in browser in my ionic application.
What i simply to is:

<button class="button button-outline button-block button-light animated bounceInUp" style="margin-top: 30px" ng-click="goToCommentPage()">
GO TO COMMENT PAGE
</button>

In my controller:

$scope.goToCommentPage = function() {
	window.open(BasePath + '/comment', '_system');
}

If i test my app in browser with ionic serve all works fine, but if i build the app and install it on my device, when i click on the button nothing happens.