Drupalcon Latino America 2015
Colombia, Bogota.
Drupal 7 : 37 request, 225.43KB, 3.35s
That's the reason for all API's :)
or
Is a complete solution, that's why can't be compared with libraries like JQuery, Knockout, etc.
Extends HTML (directives)
The DOM doesn't manipulate directly (selectors)
Data binding (witchcraft)
$scope
DataBinding
Form
Filter
Directives
Dependency Injection
"scope is an object that refers to the application model. It is an execution context for expressions"
It is the glue between the controller and the view
Is the synchronization between the model and the view
Traditional Data Binding
Two-Way Data Binding
Validations on the fly
Easy assimilation of two-way Data Binding (ng-model)
Best UX (immediately feedback)
A filter formats the value of the expression to show the user
{{ expression | filter }}
It's the origin of the "power", for extend HTML
From a superficial point of view, directive are elements of DOM (attributes, HTML elements)
<date-picker></date-picker>
<input date-picker>
var app = angular.module('myapp', []);
app.directive('helloWorld', function() {
return {
restrict: 'AE',
replace: 'true',
template: 'Hello World!!'
};
});
Alfredo y Danny
Wednesday 2:15pm - 3:15pm
Salon Arrayan - SeeD(REST export is the new sexy)
Basic UI for REST module
https://prague2013.drupal.org/bof/decoupling-drupals-frontend
http://dublin2013.drupaldays.org/program/sessions/decoupling-drupal-and-...
https://www.getpantheon.com/blog/headless-websites-headless-drupal-options
https://www.getpantheon.com/blog/headless-websites-whats-big-deal
http://lullabot.github.io/drupalorg-issues/#/board
http://www.drupical.com
http://www.weather.com
Libraries
https://github.com/enzolutions/backbone.drupal
Yeoman generators
https://github.com/enzolutions/generator-marionette-drupal
https://github.com/omero/generator-angular-drupal
(coming soon)
Hands are always needed, ping us (@omers, @enzolutions)
http://7sabores.com/blog/implementar-cross-origin-resource-sharing-drupal-7
https://github.com/omero/drupal8links
http://omero.github.io/drupal8links
Presentation slides: http://bit.ly/headless-drupal-bogota
omersguchigu@gmail.com
@omers
drupal.org/u/omers
github.com/omero