i have this code in my script.js file
var mainController = function($scope){ $scope.message = \"Plunker\"; };
and this is my HTML
You need to register your controller with the main module of your application.
Try this in your app.js
var myApp = angular.module('app', []); myApp.controller('mainController', function($scope){ $scope.message = "Plunker"; });
and in your html
Hello {{ message }}