Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • what is this line doing? $scope.selectedCountry = angular.copy($scope.chooseCountries[0]); Commented Dec 24, 2014 at 12:11
  • 1
    It's just default value for $scope.selectedCountry (you can remove this line if you don't want to use default value). In this case angular.copy creates copy of first element of chooseCountries array. So it means $scope.selectedCountry = {countryId : 1, name : "France - Mainland", desc: "some description" }; Commented Dec 24, 2014 at 12:34