What is ng-init, and how does it differ from $scope initialization in the controller?

ng-init initializes variables in the view, useful for simple values. However, $scope initialization in the controller is better for complex data and logic.

<div ng-init="count=1">{{count}}</div>