This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (function(angular, $appName$) { | |
| class $controllerName${ | |
| constructor($module1$, $module2$, $module3$) { | |
| angular.extend(this, { | |
| $module1$: $module1$, | |
| $module2$: $module2$, | |
| $module3$: $module3$ | |
| }); | |
| $END$ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Need brew ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)" | |
| # brew install git bash-completion | |
| # if you run into trouble god help you | |
| # this should fix your issues sudo chown -R $USER:admin /usr/local | |
| MAGENTA=$(tput setaf 9) | |
| ORANGE=$(tput setaf 172) | |
| GREEN=$(tput setaf 190) | |
| PURPLE=$(tput setaf 141) | |
| WHITE=$(tput setaf 255) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <input type="text"/> | |
| <div>Searching: {{searching}}</div> | |
| <ul> | |
| <li ng-transclude | |
| ng-repeat="item in items" | |
| ng-click="selectItem(item)"> | |
| </li> | |
| <li ng-show="showNoResults">No results</li> | |
| </ul> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #platform agnostic | |
| platforms/*/assets/www | |
| # Android | |
| platforms/android/assets/www | |
| platforms/android/bin/ | |
| platforms/android/gen/ | |
| platforms/android/res/xml/config.xml | |
| platforms/android/ant-build | |
| platforms/android/ant-gen |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| app.directive('toggleClass', function () { | |
| return { | |
| restrict: 'A', | |
| scope: { | |
| target: '@', | |
| toggleClass: '@' | |
| }, | |
| link: function ($scope, $element, $attr) { | |
| $scope.$targetElement = angular.isDefined($scope.target)? $element.find($scope.target): $element; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ((angular, window) => { | |
| /** | |
| * GeoLocation Utility Service | |
| * @param $localStorage | |
| * @param $cordovaGeolocation | |
| * @param $q | |
| * @returns {{getCachedGeoLocation: getCachedGeoLocation, getDistance: getDistance}} | |
| * @constructor | |
| */ | |
| var GeoService = function($localStorage, $cordovaGeolocation, $q) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <div class="pull-to-refresh"> | |
| <h1 class="title" ng-bind="text[status]"></h1> | |
| </div> | |
| <div ng-transclude></div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ((angular, window) => { | |
| /** | |
| * GeoLocation Utility Service | |
| * @param $localStorage | |
| * @param $cordovaGeolocation | |
| * @param $q | |
| * @returns {{getCachedGeoLocation: getCachedGeoLocation, getDistance: getDistance}} | |
| * @constructor | |
| */ | |
| var GeoService = function($localStorage, $cordovaGeolocation, $q) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var unirest = require('unirest'); | |
| var mongoose = require('mongoose'); | |
| var User = require('../models/User'); | |
| var async = require('async'); | |
| var secrets = require('../config/secrets'); | |
| mongoose.connect(secrets.db); | |
| mongoose.connection.on('error', function() { | |
| console.error('MongoDB Connection Error. Make sure MongoDB is running.'); | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| myApp.service('currentUser', function() { | |
| this.user = {}; | |
| }) | |
| myApp.controller('myController', function(currentUser) { | |
| $scope.user = currentUser.user; | |
| }) |