In the last post the groundwork has been laid for real development to begin. The data service, router, and landing pages have been created and are ready for code. The last thing to add for this part of the process is the Coldfusion component. A data folder has been added to store any cfcs relevant to the TRIPS application. The first is to write the CFFUNCTION that will return the list of trips. My development pattern for creating CF functions is fairly routine. First, decide on a name, parameters and return type. Sometimes the naming of a function is the hardest part. I've settled on actionDataObject. So in this case, the function will be named: getTrips. At moment, the landing controller (landing.js) is empty. angular.module('core').controller('LandingController',['$scope','dataService', function($scope,dataService){ }]); The basic task of this controller is getting the list of trips. First is the establishment of an empty tr...
Comments
Post a Comment