app.js
$stateProvider.state('tenant.propertyGoogleMap', {
url: '/PropertyGoogleMap',
templateUrl: '~/App/tenant/views/propertymanagement/propertyGoogleMap.cshtml',
menu: 'PropertyGoogleMap.Tenant'
});
html
<button type="button" class="btn btn-primary" ng-click="vm.propertyGoogleMap()">
@L("PfMap")
</button>
js
vm.propertyGoogleMap = function () {
$window.open('tenant.propertyGoogleMap', '_blank');
};
Could you tell me how to combine both $window
and $stateProvider
to open a new browser tab when user clicks the button ? When I try as shown above then it gives 404 error
.Thanks.