Created
September 14, 2018 12:53
-
-
Save jakerb/a234c0e5adfeed9156cb523d4942bd34 to your computer and use it in GitHub Desktop.
Pass parameters as params into the scope.
This file contains 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() { | |
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