I have an enum (I code using TypeScript):
export enum AddressType { NotSet = 0, Home = 1, Work = 2, Headquarters = 3, Custom = -1, }
In a function if the below code is added and the same is called from the ng-init then the issue is also getting resolved. This will resolve the string comparison issue.
$scope.Ctrl.type = "" + $scope.Ctrl.type + "";