concept this approach in category angular

This is an excerpt from Manning's book Getting MEAN with Mongo, Express, Angular, and Node.js 2ED.
Tightly coupling the application code to the front end this way tends to blur the lines between traditional front-end and back-end developers. One of the reasons why people like to use this approach is that it reduces the load on the servers, thus reducing cost. What you’re doing in effect is crowdsourcing the computational power required for the application by pushing that load into users’ browsers.
We’ll discuss the pros and cons of this approach in section 1.5 and explain when it may (or may not) be appropriate to use one of these technologies.
This approach is Simon’s preferred approach, as he’s been using it for about 15 years. Clive, on the other hand, advocates putting the comma at the front of each line.
Providing a return in the aforementioned way is also a stylistic convention but is again one that helps you and others understand your code when you come back to it after a break. When you use this approach, the return statement contains a list of the functions that you’re returning without any of the actual code. The code is declared in functions above the return statement, although within the same module. The following code listing shows an example.
Listing D.55. Revealing module pattern, short example
const userAge = (function () { let myAge; const setAge = function (initAge) { #1 myAge = initAge; #1 }; #1 return { setAge #2 }; })();You can’t see the benefit of this approach in such a small example. We’ll look at a longer example soon that will get you part of the way there, but you’ll see the benefits when you have a module that runs to several hundred lines of code. As gathering all the variables at the top of the scope makes it obvious which variables are being used, taking the code out of the return statement makes it obvious at a glance which functions are being exposed. If you had a dozen or so functions being returned, each with a dozen or more lines of code, chances are that you wouldn’t to be able to see the entire return statement on one screen of code without scrolling.