9. About AngularJS
• Data Binding
• Template Engine
• Routing
• Ajax Support
• Test
• Security
• DI ( Dependency Injection )
• Service / Directive / Filter
10. About AngularJS
• Data Binding
• Template Engine
• Routing
• Ajax Support
• Test
• Security
• DI ( Dependency Injection )
• Service / Directive / Filter
今日はコレだけ!
12. Data Binding By jQuery
<body>
<input type="text" id="someWord">
<p>Hello <span id=“greeting"></span></p>
</body>
$('#someWord').on('keyup', function(event){
var textBoxValue = $(this).val();
$('#greeting').html(textBoxValue);
});
HTML
JavaScript
13. Data Binding By AngularJS
<body>
<input type="text" ng-model=“greeting”>
<p>Hello <span ng-bind=“greeting”></span></p>
</body>
// no code.
HTML
JavaScript
14. Template Engine
<ul>
@for(order <- orders) {
<li>@order.title</li>
}
</ul>
<ul>
<% writers.each do |writer| %>
<li><%= writer %></li>
<% end %>
Play Framework </ul> Ruby on Rails
<ul>
<% foreach ($this->data as $d): %>
<li><%=$d[‘title']%> & <%=$d[‘description']%></li>
<% endforeach %>
</ul>
PHP