Skip to content

Instantly share code, notes, and snippets.

@jakerb
Created September 14, 2018 12:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jakerb/a234c0e5adfeed9156cb523d4942bd34 to your computer and use it in GitHub Desktop.
Save jakerb/a234c0e5adfeed9156cb523d4942bd34 to your computer and use it in GitHub Desktop.
Pass parameters as params into the scope.
(function() {
if (typeof $appuccino !== 'undefined') {
/*
* application/controller
* @info Fired when the application controller is ready.
*
* Read more about hooks in App Docs.
* @link https://dashboard.myappuccino.com/documentation/app/
*/
$appuccino.action.add('application/controller', function() {
var $scope = this;
var $debugging = (typeof MYA_PREVIEW !== 'undefined');
$scope.params = $scope.injected.$routeParams;
});
}
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment