user3414662 user3414662 - 2 years ago 103
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">
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download