angular-cn/tools/doc-shredder/_test/test_source/no-multiregion/nested-regions.js

24 lines
424 B
JavaScript

// #docregion all
// #docregion log
/**
* @description This function logs a string.
*/
function log() {
console.log('Logging.');
}
// #enddocregion
/**
* @description My application
*/
var myApp = {
// #docregion greet
/**
* @description Display a greeting
* @param {string} name The name of the person to greet
*/
greet: function(name) {
console.log('hello ' + name);
}
// #enddocregion
};