SHARE
TWEET

Untitled

a guest Jul 11th, 2019 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //Moduleの作成!
  2. var myApp = angular.module('mytestApp',[]);
  3.  
  4. //Moduleの中にcontrollerを指定(複数指定できる)↓ここは決まりみたいなもの
  5. myApp.controller('MyTestController',['$scope',function($scope) {
  6.  
  7.     //$scope.〜 ← 〜はHTML内の{{}}の部分
  8.     $scope.message = 'I use $scope!';
  9. }]);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top