Angularjs – Why this angularjs example doesn’t work on plunker

angularjsangularjs-directive

In this angular document: http://docs.angularjs.org/guide/concepts, there is an example about Directives.

Directives

A directive is a behavior or DOM transformation which is triggered by the presence of a custom attribute, element name, or a class name. A directive allows you to extend the HTML vocabulary in a declarative fashion. Following is an example which enables data-binding for the contenteditable in HTML.

It provides two live demo, one for plunker, another for jsfiddle.

Why the jsfiddle one works well but the plunker one doesn't work? They have exactly the same code, and there is no error in the console.

Best Answer

Replace the script provided by Plunker with

<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.2/angular.min.js"></script>