user3414662 user3414662 - 1 year ago 76
AngularJS Question

Why my Plunker Angular JS is not working?

Can someone tell me why the hell this plunker is not working?
Sample AngularJS on Plunker


<!DOCTYPE html>

<script src=""></script>
<script src="script.js"></script>

<body ng-controller="MyCtrl">



var app = angular.module('myApp', []);
app.controller('MyCtrl', function ($scope) {
$scope.userData = {
name: 'Xavier',
age: 25

Answer Source

you forgot to put ng-app.

<html ng-app="myApp">