Incorporar apresentação
Transferir como PDF, PPTX












![E la vem código...
angular.module('MyApp', [ 'MyApp.controllers', ‘MyApp.services’]);
…
angular.module('MyApp.controllers', []).controller('driversController', function($scope) {
$scope.name = “I’m Angular”;
});
…
angular.module('MyApp.services', []).factory('ergastAPIservice', function($http) {
var ergastAPI = {};
ergastAPI.getDrivers = function() {
return $http({
method: 'JSONP',
url: 'http://ergast.com/api/f1/2013/driverStandings.json?callback=JSON_CALLBACK'
});
}
return ergastAPI;
});](https://image.slidesharecdn.com/hybridapp-phonegapangularionic-141205221023-conversion-gate02/85/Hybrid-app-phonegap-angular-ionic-13-320.jpg)


















Este documento discute o desenvolvimento de aplicativos híbridos usando NodeJS, Cordova/Phonegap, AngularJS e o framework Ionic. É explicado como essas tecnologias podem ser usadas juntas para criar aplicativos multiplataforma com um único código base. Além disso, são detalhados os passos iniciais para criar um aplicativo simples e a estrutura geral de um projeto nesta abordagem.












![E la vem código...
angular.module('MyApp', [ 'MyApp.controllers', ‘MyApp.services’]);
…
angular.module('MyApp.controllers', []).controller('driversController', function($scope) {
$scope.name = “I’m Angular”;
});
…
angular.module('MyApp.services', []).factory('ergastAPIservice', function($http) {
var ergastAPI = {};
ergastAPI.getDrivers = function() {
return $http({
method: 'JSONP',
url: 'http://ergast.com/api/f1/2013/driverStandings.json?callback=JSON_CALLBACK'
});
}
return ergastAPI;
});](https://image.slidesharecdn.com/hybridapp-phonegapangularionic-141205221023-conversion-gate02/85/Hybrid-app-phonegap-angular-ionic-13-320.jpg)

















