This is updated and slighted modifed from: http://ionicframework.com/docs/guide/
== Install Dependencies ==
sudo npm install -g cordova gulp ionic
== Create Project ==
angular.module('myApp') | |
.factory('people', function($resource, $q) { | |
var people_resource = $resource(myApp.API_BASE_URL + '/people/:personId'); | |
// Public API here | |
return { | |
getList: function() { | |
var deferred = $q.defer(); | |
var people = people_resource.query(function() { |
angular.module('myApp').directive('myChart', function () { | |
var draw_line_chart = function(scope) { ... } | |
var draw_bar_chart = function(scope) { ... } | |
var setup_chart_interactions = function(scope) { ... } | |
// other helper functions ... | |
return { | |
templateUrl: '/views/my-chart.html', | |
restrict: 'E', |
angular.module('myApp') | |
.controller('PrimaryCtrl', function($scope, $routeParams, investigationModel) { | |
var investigationId = $routeParams.id; | |
$scope.investigation = investigationDetailModel.investigation; | |
$scope.another_function = function() { | |
// blah blah blah | |
$scope.investigation.$save(); | |
} |
This is updated and slighted modifed from: http://ionicframework.com/docs/guide/
== Install Dependencies ==
sudo npm install -g cordova gulp ionic
== Create Project ==
Disclaimer: This piece is written anonymously. The names of a few particular companies are mentioned, but as common examples only.
This is a short write-up on things that I wish I'd known and considered before joining a private company (aka startup, aka unicorn in some cases). I'm not trying to make the case that you should never join a private company, but the power imbalance between founder and employee is extreme, and that potential candidates would