ng-init dead

http://angularjs.org/

HTML

<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.1.3/angular.min.js"></script>
 
<div ng-init="data.icon3={
    "contractId": "53e4fbdd7e230346b2c94fa"
}
" />

    <div ng-controller="MyCtrl">
        <h2>ng-init works on standard elements...</h2>
        
        {{data}}
        <hr/>
      
    </div>

CSS

h2{
    font-size:16px;
    font-weight:bold;
}

JavaScript

var myApp = angular.module('myApp', []);

function MyCtrl($scope) {
}

myApp.directive('myDirective', function () {
    return {
        replace:true,
        scope: {
            value: '=ngModel'
        },
        template: '<div>You said {{value}}</div>',
        compile: function compile() {
            return function postLink(scope, element, attrs) {
                console.log(scope.otherData);
            };
        }
    }
});