This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | { | |
| init: function(elevators, floors) { | |
| elevators.forEach(function(e) { | |
| e.on("floor_button_pressed", function(fn) { | |
| e.goToFloor(fn); | |
| }); | |
| }); | |
| floors.forEach(function(f) { | |
| f.on("up_button_pressed down_button_pressed", function() { | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | { | |
| init: function(elevators, floors) { | |
| e = elevators[0]; | |
| e.on("floor_button_pressed", function(fn) { | |
| e.goToFloor(fn); | |
| }); | |
| floors.forEach(function(f) { | |
| f.on("up_button_pressed down_button_pressed", function() { | |
| e.goToFloor(f.floorNum()); | |
| }); | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | (-> | |
| class Sample03Controller | |
| constructor: () -> | |
| @title = 'Sample03' | |
| @model = | |
| list: [ | |
| {code: 100, name: 'おにぎり(梅)', price: 120} | |
| {code: 101, name: 'おにぎり(鮭)', price: 150} | |
| {code: 200, name: '味噌汁', price: 100} | |
| {code: 300, name: 'のり弁', price: 380} | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | (-> | |
| class Sample02Controller | |
| constructor: () -> | |
| @title = 'Sample02' | |
| @model = | |
| checkbox: true | |
| angular | |
| .module 'mainApp' | |
| .controller 'Sample02Controller', Sample02Controller | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | (-> | |
| class Sample01Controller | |
| constructor: () -> | |
| @title = 'Sample01' | |
| @model = | |
| name: 'AngularJS' | |
| angular | |
| .module 'mainApp' | |
| .controller 'Sample01Controller', Sample01Controller | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | (-> | |
| class MainController | |
| constructor: () -> | |
| @model = | |
| title: 'AngularJS入門' | |
| angular | |
| .module 'mainApp', ['ngRoute'] | |
| .config [ | |
| '$routeProvider' | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | <!DOCTYPE HTML> | |
| <html lang="ja" ng-app="mainApp"> | |
| <head> | |
| <meta http-equiv="content-type" content="text/html; charset=UTF-8"> | |
| <title>AngularJS入門</title> | |
| <script src="/bower_components/material-design-lite/material.min.js"></script> | |
| <script src="/bower_components/angular/angular.min.js"></script> | |
| <script src="/bower_components/angular-route/angular-route.min.js"></script> | |
| <script src="assets/js/main.js"></script> | |
| <script src="assets/js/sample01.js"></script> |