Pulse7
9/8/2017 - 6:30 PM

Controller basic

<script src="app.js"
<div ng-app="App"
  <div ng-controller="MainController"
    {{message}}

=============
app.js
var MainController = function($scope){
  $scope.message = "Hello world!";
}
var app=angular.module("App",[])
app.controller("MainController",MainController)