[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"$KiqIp5Qu8t":3,"blog-\u002Fblog\u002Fhow-i-set-up-a-new-angular-project":52,"blogToc-\u002Fblog\u002Fhow-i-set-up-a-new-angular-project":2007,"blog-surrounding-\u002Fblog\u002Fhow-i-set-up-a-new-angular-project":3468,"blog-similar-posts-\u002Fblog\u002Fhow-i-set-up-a-new-angular-project":3477},{"id":4,"extension":5,"items":6,"meta":49,"stem":50,"__hash__":51},"menu\u002Fmenu.json","json",[7,12,16,20,24,28,32,36,41,45],{"i18nId":8,"to":9,"ariaLabel":10,"mainNavigation":11},"components.menu.home","\u002F","Home",true,{"i18nId":13,"to":14,"ariaLabel":15,"mainNavigation":11},"components.menu.about","\u002Fhire-me","About",{"i18nId":17,"to":18,"ariaLabel":19,"mainNavigation":11},"components.menu.testimonials","\u002Ftestimonials","Testimonials",{"i18nId":21,"to":22,"ariaLabel":23},"components.menu.contact","\u002Fcontact","Contact",{"i18nId":25,"to":26,"ariaLabel":27,"mainNavigation":11},"components.menu.blog","\u002Fblog","Blog",{"i18nId":29,"to":30,"ariaLabel":31,"mainNavigation":11},"components.menu.tips","\u002Fvue-tips","Vue Tips",{"i18nId":33,"to":34,"ariaLabel":35,"mainNavigation":11},"components.menu.projects","\u002Fprojects","Projects",{"i18nId":37,"to":38,"ariaLabel":39,"mainNavigation":40},"components.menu.stats","\u002Fstats","stats",false,{"i18nId":42,"to":43,"ariaLabel":44,"mainNavigation":40},"components.menu.businessCard","\u002Fbusiness-card","Business Card",{"i18nId":46,"to":47,"ariaLabel":48,"mainNavigation":40},"components.menu.publications","\u002Fpublications","Publications",{},"menu","njLT1QoRt2Dv8QWoVmH8xdTAiDywSj0bxBQdmoyWUE0",{"id":53,"title":54,"body":55,"categories":1984,"cover":1988,"date":1989,"description":1990,"extension":1991,"lastUpdated":1992,"meta":1993,"navigation":11,"ogImage":1994,"path":1995,"readingTime":1996,"robots":1994,"schemaOrg":1994,"seo":2001,"sitemap":2002,"stem":2005,"tags":1994,"__hash__":2006},"blog\u002Fblog\u002Fhow-i-set-up-a-new-angular-project\u002Findex.md","How I Set Up A New Angular Project",{"type":56,"value":57,"toc":1969},"minimark",[58,76,104,109,121,124,150,156,166,171,179,182,208,217,220,223,227,230,247,253,256,287,290,305,308,328,332,335,356,359,369,372,379,386,393,487,496,500,519,542,596,603,608,612,615,623,632,635,643,646,650,653,656,659,1300,1303,1311,1314,1321,1330,1335,1701,1709,1848,1851,1854,1863,1872,1886,1897,1900,1946,1950,1953,1956,1965],[59,60,61,62,69,70,75],"p",{},"I think ",[63,64,68],"a",{"href":65,"rel":66},"https:\u002F\u002Fangular.io\u002F",[67],"nofollow","Angular"," is the best choice for large enterprise applications. The basic project setup, which is generated using the ",[63,71,74],{"href":72,"rel":73},"https:\u002F\u002Fcli.angular.io\u002F",[67],"Angular CLI"," is good, but I prefer another way to set up a new project. In this article, I want to talk about these topics:",[77,78,79,83,86,89,92,95,98,101],"ul",{},[80,81,82],"li",{},"Using Nx instead of the Angular CLI",[80,84,85],{},"TypeScript configuration",[80,87,88],{},"Internationalization",[80,90,91],{},"UI Component Explorer",[80,93,94],{},"Domain-driven Design for your models",[80,96,97],{},"Error Handling",[80,99,100],{},"Build Complex Components",[80,102,103],{},"Miscellaneous",[105,106,108],"h2",{"id":107},"nx","Nx",[59,110,111,115,116,120],{},[63,112,108],{"href":113,"rel":114},"https:\u002F\u002Fnx.dev\u002Fangular\u002Fgetting-started\u002Fwhat-is-nx",[67]," is not a replacement for the Angular CLI but uses the Angular CLI's power and enhances it with additional tools. Anything you can do with the Angular CLI can also be done with Nx, and you configure your project (as usual) with the ",[117,118,119],"code",{},"angular.json"," configuration file.",[59,122,123],{},"I love Nx due to these facts:",[77,125,126,147],{},[80,127,128,129,134,135,140,141,146],{},"I can easily integrate modern tools like ",[63,130,133],{"href":131,"rel":132},"https:\u002F\u002Fcypress.io",[67],"Cypress",", ",[63,136,139],{"href":137,"rel":138},"https:\u002F\u002Fjestjs.io\u002F",[67],"Jest"," and ",[63,142,145],{"href":143,"rel":144},"https:\u002F\u002Fprettier.io\u002F",[67],"Prettier"," to my Angular project",[80,148,149],{},"I can use effective development practices which are pioneered at Google, Facebook, and Microsoft",[151,152,153],"blockquote",{},[59,154,155],{},"Nx is an easy to use version of the powerful monorepo tools used at companies like Google.",[59,157,158,159,140,162,165],{},"Let us first talk about the usage of ",[63,160,133],{"href":131,"rel":161},[67],[63,163,139],{"href":137,"rel":164},[67]," in Angular projects.",[167,168,170],"h3",{"id":169},"why-should-i-consider-using-cypress-instead-of-protractor","Why should I consider using Cypress instead of Protractor?",[59,172,173,178],{},[63,174,177],{"href":175,"rel":176},"https:\u002F\u002Ftechblog.fexcofts.com\u002F2018\u002F09\u002F24\u002Fend-to-end-e2e-angular-testing-protractor-vs-cypress\u002F",[67],"Check out this nice comparison"," to get more information about the differences between the two technologies.",[59,180,181],{},"Cypress is modern and interesting because it is not based on Selenium. Whereas Selenium executes remote commands through the network, Cypress runs in the same run-loop as your application. Additionally, it is fast and has nice features like:",[77,183,184,187,190,193,196,199,202,205],{},[80,185,186],{},"Time travel",[80,188,189],{},"Debuggability",[80,191,192],{},"Real-time reloads",[80,194,195],{},"Automatic waiting",[80,197,198],{},"Spies, stubs and clocks",[80,200,201],{},"Network traffic control",[80,203,204],{},"Consistent results",[80,206,207],{},"Screenshots and videos",[59,209,210,211,216],{},"You can find further details about these features on the ",[63,212,215],{"href":213,"rel":214},"https:\u002F\u002Fwww.cypress.io\u002Ffeatures",[67],"official feature website",".",[59,218,219],{},"The most significant disadvantage of Cypress is, in my opinion, that it does not have full integration with tools like SauceLabs and BrowserStack and does not support other browsers than Chrome. This probably might change in the future, but these features are not available at the time of writing.",[59,221,222],{},"In my opinion, Cypress is not a perfect choice for every Angular project but I would recommend that you should give it a try and make your own decision.",[167,224,226],{"id":225},"why-should-i-consider-using-jest-instead-of-karmajasmine","Why should I consider using Jest instead of Karma\u002Fjasmine?",[59,228,229],{},"In my experience, the testing experience using Karma + jasmine is worse when the projects become bigger:",[77,231,232,235,238],{},[80,233,234],{},"Slow build times (especially initially)",[80,236,237],{},"Recompiling does not work reliably",[80,239,240,241,246],{},"HTML reporter like ",[63,242,245],{"href":243,"rel":244},"https:\u002F\u002Fwww.npmjs.com\u002Fpackage\u002Fkarma-jasmine-html-reporter",[67],"karma-jasmine-html-reporter"," tend to be buggy",[59,248,249,252],{},[63,250,139],{"href":137,"rel":251},[67]," was created by Facebook and is faster than other test runners because it is parallelizing tests. Additionally, it provides a CLI and has less configuration effort than other testing frameworks.",[59,254,255],{},"Some of the advantages of Jest compared to Karma + jasmine:",[77,257,258,261,267,270,273,276,284],{},[80,259,260],{},"Tests run faster as it can execute tests without building the whole app",[80,262,263,264],{},"Using the CLI it is possible to filter by a filename or regex, which reduces the need for ",[117,265,266],{},"fdescribe",[80,268,269],{},"Nearly no configuration needed to get started",[80,271,272],{},"Stable tests",[80,274,275],{},"The syntax is similar to jasmine",[80,277,278,279],{},"Provides ",[63,280,283],{"href":281,"rel":282},"https:\u002F\u002Fjestjs.io\u002Fdocs\u002Fen\u002Fsnapshot-testing",[67],"snapshot testing",[80,285,286],{},"More active community",[59,288,289],{},"I haven't used Jest in any of my Angular projects yet, but I will try it in one of my following Angular projects. The main reason why I haven't used it yet is that I worked on existing codebases with many jasmine tests, and there was no need\u002Ftime\u002Fbudget to migrate them to Jest. But I already used Jest in a Vue.js project and liked it.",[59,291,292,293,298,299,304],{},"If you are just annoyed with the verbose code produced by using Angular's ",[63,294,297],{"href":295,"rel":296},"https:\u002F\u002Fangular.io\u002Fguide\u002Ftesting#component-dom-testing",[67],"TestBed API"," I would suggest trying ",[63,300,303],{"href":301,"rel":302},"https:\u002F\u002Fgithub.com\u002FNetanelBasal\u002Fspectator",[67],"Spectator",", which allows us to write \"readable, sleek and streamlined unit tests\".",[59,306,307],{},"A summary of my testing suggestions:",[77,309,310,313,316,325],{},[80,311,312],{},"Consider using Spectator instead of the TestBed API of Angular.",[80,314,315],{},"Consider using Jest instead of Karma\u002FJasmine (Migration is relatively easy)",[80,317,318,319,324],{},"Consider using ",[63,320,323],{"href":321,"rel":322},"https:\u002F\u002Fwww.npmjs.com\u002Fpackage\u002Fng-mocks",[67],"ng-mocks"," to mock your component, directives, services, pipes, and more. Your unit tests should be pure and therefore isolated.",[80,326,327],{},"Consider using a functional component testing approach over the technical class testing approach. Test your component from the DOM and not the class. It will help if you think of user events instead of methods.",[167,329,331],{"id":330},"effective-development-practices","Effective Development Practices",[59,333,334],{},"Using Nx you can work in a \"monorepo\" way of building your application. This approach is used by large software companies like Google, Facebook, Twitter, and more to make it easier to work with multiple applications and libraries. These are some of the advantages of a monorepo approach:",[77,336,337,340,343,350,353],{},[80,338,339],{},"You commit a working piece of software which may include multiple parts like frontend and backend",[80,341,342],{},"One toolchain setup",[80,344,345,346,349],{},"Dependency management is easier, e.g. all applications & libs in a Nx workspace share one ",[117,347,348],{},"package.json"," and can thus use the same Angular version",[80,351,352],{},"Code can be split into composable modules",[80,354,355],{},"Consistent developer experience",[59,357,358],{},"What I also like is the possibility to create applications and libraries in Nx, which provide an excellent way to structure larger applications:",[151,360,361],{},[77,362,363,366],{},[80,364,365],{},"An application is anything that can run in the browser or on the server. It's similar to a binary.",[80,367,368],{},"A library is a piece of code with a well-defined public API. A library can be imported into another library or application. You cannot run a library.",[59,370,371],{},"For example, we could define a TypeScript library that shares our TypeScript interfaces between our TS-based applications in our workspace. Of course, our workspace can contain applications that rely on different frontend (or backend) frameworks like React, Angular, NestJS, and even more.",[59,373,374,375,378],{},"One of my favorite features is the dependency graph which can show me a graphical representation of my workspace by running ",[117,376,377],{},"nx affected:dep-graph",":",[59,380,381],{},[382,383],"img",{"alt":384,"src":385},"Angular Nx Dependency Graph","blog\u002Fhow-i-set-up-a-new-angular-project\u002Fnx-dep-graph_je0tml.png",[59,387,388,389,392],{},"As we used ",[117,390,391],{},"affected",", we can see what parts of our workspace are affected by our current changes (highlighted in red). This way, we can also run only tests or recompile code that was effected by our changes:",[394,395,400],"pre",{"className":396,"code":397,"language":398,"meta":399,"style":399},"language-bash shiki shiki-themes github-light poimandres poimandres","nx affected:apps  # prints the apps affected by a PR\n\nnx affected:build  # reruns build for all the projects affected by a PR\n\nnx affected:test  # reruns unit tests for all the projects affected by a PR\n\nnx affected:e2e  # reruns e2e tests for all the projects affected by a PR\n\nnx affected --target=lint  # reruns any target (for instance lint) for projects affected by a PR\n","bash","",[117,401,402,418,424,435,440,451,456,467,472],{"__ignoreMap":399},[403,404,407,410,414],"span",{"class":405,"line":406},"line",1,[403,408,107],{"class":409},"sgaD9",[403,411,413],{"class":412},"sMmyg"," affected:apps",[403,415,417],{"class":416},"s1MN7","  # prints the apps affected by a PR\n",[403,419,421],{"class":405,"line":420},2,[403,422,423],{"emptyLinePlaceholder":11},"\n",[403,425,427,429,432],{"class":405,"line":426},3,[403,428,107],{"class":409},[403,430,431],{"class":412}," affected:build",[403,433,434],{"class":416},"  # reruns build for all the projects affected by a PR\n",[403,436,438],{"class":405,"line":437},4,[403,439,423],{"emptyLinePlaceholder":11},[403,441,443,445,448],{"class":405,"line":442},5,[403,444,107],{"class":409},[403,446,447],{"class":412}," affected:test",[403,449,450],{"class":416},"  # reruns unit tests for all the projects affected by a PR\n",[403,452,454],{"class":405,"line":453},6,[403,455,423],{"emptyLinePlaceholder":11},[403,457,459,461,464],{"class":405,"line":458},7,[403,460,107],{"class":409},[403,462,463],{"class":412}," affected:e2e",[403,465,466],{"class":416},"  # reruns e2e tests for all the projects affected by a PR\n",[403,468,470],{"class":405,"line":469},8,[403,471,423],{"emptyLinePlaceholder":11},[403,473,475,477,480,484],{"class":405,"line":474},9,[403,476,107],{"class":409},[403,478,479],{"class":412}," affected",[403,481,483],{"class":482},"snkik"," --target=lint",[403,485,486],{"class":416},"  # reruns any target (for instance lint) for projects affected by a PR\n",[59,488,489,490,495],{},"See the ",[63,491,494],{"href":492,"rel":493},"https:\u002F\u002Fnx.dev\u002Fangular\u002Ffundamentals\u002Fmonorepos-automation",[67],"official documentation"," to learn how to use these mechanics in Nx.",[105,497,499],{"id":498},"typescript-configuration","TypeScript Configuration",[59,501,502,503,508,509,513,514,216],{},"I prefer to start with ",[63,504,507],{"href":505,"rel":506},"https:\u002F\u002Fgithub.com\u002Fmgechev\u002Ftslint-angular",[67],"this tslint configuration"," as it uses the tslint configuration of ",[63,510,74],{"href":511,"rel":512},"https:\u002F\u002Fgithub.com\u002Fangular\u002Fangular-cli",[67]," and aligns with the ",[63,515,518],{"href":516,"rel":517},"https:\u002F\u002Fangular.io\u002Fguide\u002Fstyleguide",[67],"Angular style guide",[59,520,521,522,525,526,533,534,537,538,541],{},"In my ",[117,523,524],{},"tsconfig.json"," file I enable ",[63,527,530],{"href":528,"rel":529},"https:\u002F\u002Fbasarat.gitbooks.io\u002Ftypescript\u002Fdocs\u002Foptions\u002FstrictNullChecks.html",[67],[117,531,532],{},"strictNullChecks"," which makes the code base more robust against possible ",[117,535,536],{},"null"," or ",[117,539,540],{},"undefined"," errors during runtime.",[394,543,546],{"className":544,"code":545,"language":5,"meta":399,"style":399},"language-json shiki shiki-themes github-light poimandres poimandres","{\n  \"compilerOptions\": {\n    \"strictNullChecks\": true\n  }\n}\n",[117,547,548,554,570,586,591],{"__ignoreMap":399},[403,549,550],{"class":405,"line":406},[403,551,553],{"class":552},"sygvE","{\n",[403,555,556,560,564,567],{"class":405,"line":420},[403,557,559],{"class":558},"saHH4","  \"",[403,561,563],{"class":562},"sGRIV","compilerOptions",[403,565,566],{"class":558},"\"",[403,568,569],{"class":552},": {\n",[403,571,572,575,577,579,582],{"class":405,"line":426},[403,573,574],{"class":558},"    \"",[403,576,532],{"class":482},[403,578,566],{"class":558},[403,580,581],{"class":552},": ",[403,583,585],{"class":584},"s6g4C","true\n",[403,587,588],{"class":405,"line":437},[403,589,590],{"class":552},"  }\n",[403,592,593],{"class":405,"line":442},[403,594,595],{"class":552},"}\n",[59,597,598,599,378],{},"From the ",[63,600,494],{"href":601,"rel":602},"https:\u002F\u002Fwww.typescriptlang.org\u002Fdocs\u002Fhandbook\u002Fcompiler-options.html",[67],[151,604,605],{},[59,606,607],{},"In strict null checking mode, the null and undefined values are not in the domain of every type and are only assignable to themselves and any (the one exception being that undefined is also assignable to void).",[105,609,611],{"id":610},"internationalization-i18n","Internationalization (i18n)",[59,613,614],{},"I configure internationalization from the beginning of a project even if the product is only planned for one country. It has two reasons:",[77,616,617,620],{},[80,618,619],{},"You get used to storing your translated texts in one file and not as hardcoded strings across the whole application.",[80,621,622],{},"If the application needs to get translated into another language you are prepared for it.",[59,624,625,626,631],{},"I always use ",[63,627,630],{"href":628,"rel":629},"https:\u002F\u002Fgithub.com\u002Fngx-translate\u002Fcore",[67],"ngx-translate"," in my Angular projects, especially as it allows you to switch between languages during your application's runtime. This can be handy if you implement a language switcher in your app.",[105,633,91],{"id":634},"ui-component-explorer",[59,636,637,638,216],{},"If you develop your components, creating a custom view with all available components can be helpful, or using existing solutions like ",[63,639,642],{"href":640,"rel":641},"https:\u002F\u002Fstorybook.js.org\u002F",[67],"StoryBook",[59,644,645],{},"In some projects, I created a separate page in the application (which was only visible to certain people) that showed a list of all available components. This page was used in manual testing sessions and provided a quick way to see if a new feature impacted any existing component. Additionally, it was possible to test the components in isolation.",[105,647,649],{"id":648},"use-domain-driven-design-for-your-models","Use Domain-driven Design for your models",[59,651,652],{},"One of the main ideas behind Domain-Driven Design is the separation of business logic (domain) from the rest of the application or implementation details. This can be easily implemented in Angular using TypeScript.",[59,654,655],{},"The goal of our domain model is to represent business logic. We want to avoid that certain business logic is split across multiple components and services but is available at a certain place. This way, we can easily react and change the logic if something in the business requirement has changed.",[59,657,658],{},"An example of such a domain model could look like this:",[394,660,664],{"className":661,"code":662,"language":663,"meta":399,"style":399},"language-typescript shiki shiki-themes github-light poimandres poimandres","export class User {\n  private firstName: string\n  private lastName: string\n  private age: number\n\n  get firstName() {\n    return this.firstName\n  }\n\n  get lastName() {\n    return this.lastName\n  }\n\n  get fullName() {\n    return `${this.firstName} ${this.lastName}`\n  }\n\n  get age() {\n    return this.age\n  }\n\n  constructor(firstName: string, lastName: string, age: number) {\n    this.setName(firstName, lastName)\n    this.setAge(age)\n  }\n\n  setName(firstName: string, lastName: string) {\n    if (this.validName(firstName) && this.validName(lastName)) {\n      this.firstName = firstName\n      this.lastName = lastName\n    }\n  }\n\n  setAge(age: number) {\n    if (age >= 18) {\n      this.age = age\n    } else {\n      throw new Error('User age must be greater than 18')\n    }\n  }\n\n  private validName(name: string) {\n    if (name.length > 0 && \u002F^[a-zA-Z]+$\u002F.test(name)) {\n      return true\n    } else {\n      throw new Error('Invalid name format')\n    }\n  }\n}\n","typescript",[117,665,666,683,698,709,721,725,735,751,755,759,768,780,785,790,800,833,838,843,852,864,869,874,912,935,951,956,961,985,1025,1041,1055,1061,1066,1071,1087,1104,1118,1129,1155,1160,1165,1170,1189,1247,1256,1265,1285,1290,1295],{"__ignoreMap":399},[403,667,668,672,676,680],{"class":405,"line":406},[403,669,671],{"class":670},"sRZEA","export",[403,673,675],{"class":674},"slWGy"," class",[403,677,679],{"class":678},"sBmmg"," User",[403,681,682],{"class":552}," {\n",[403,684,685,688,692,694],{"class":405,"line":420},[403,686,687],{"class":670},"  private",[403,689,691],{"class":690},"sPC-1"," firstName",[403,693,378],{"class":674},[403,695,697],{"class":696},"svhIC"," string\n",[403,699,700,702,705,707],{"class":405,"line":426},[403,701,687],{"class":670},[403,703,704],{"class":690}," lastName",[403,706,378],{"class":674},[403,708,697],{"class":696},[403,710,711,713,716,718],{"class":405,"line":437},[403,712,687],{"class":670},[403,714,715],{"class":690}," age",[403,717,378],{"class":674},[403,719,720],{"class":696}," number\n",[403,722,723],{"class":405,"line":442},[403,724,423],{"emptyLinePlaceholder":11},[403,726,727,730,732],{"class":405,"line":453},[403,728,729],{"class":674},"  get",[403,731,691],{"class":678},[403,733,734],{"class":552},"() {\n",[403,736,737,741,745,747],{"class":405,"line":458},[403,738,740],{"class":739},"sdZ-l","    return",[403,742,744],{"class":743},"sk88d"," this",[403,746,216],{"class":552},[403,748,750],{"class":749},"sMzB8","firstName\n",[403,752,753],{"class":405,"line":469},[403,754,590],{"class":552},[403,756,757],{"class":405,"line":474},[403,758,423],{"emptyLinePlaceholder":11},[403,760,762,764,766],{"class":405,"line":761},10,[403,763,729],{"class":674},[403,765,704],{"class":678},[403,767,734],{"class":552},[403,769,771,773,775,777],{"class":405,"line":770},11,[403,772,740],{"class":739},[403,774,744],{"class":743},[403,776,216],{"class":552},[403,778,779],{"class":749},"lastName\n",[403,781,783],{"class":405,"line":782},12,[403,784,590],{"class":552},[403,786,788],{"class":405,"line":787},13,[403,789,423],{"emptyLinePlaceholder":11},[403,791,793,795,798],{"class":405,"line":792},14,[403,794,729],{"class":674},[403,796,797],{"class":678}," fullName",[403,799,734],{"class":552},[403,801,803,805,809,812,814,817,820,823,825,827,830],{"class":405,"line":802},15,[403,804,740],{"class":739},[403,806,808],{"class":807},"srEIG"," `${",[403,810,811],{"class":743},"this",[403,813,216],{"class":807},[403,815,816],{"class":749},"firstName",[403,818,819],{"class":807},"}",[403,821,822],{"class":807}," ${",[403,824,811],{"class":743},[403,826,216],{"class":807},[403,828,829],{"class":749},"lastName",[403,831,832],{"class":807},"}`\n",[403,834,836],{"class":405,"line":835},16,[403,837,590],{"class":552},[403,839,841],{"class":405,"line":840},17,[403,842,423],{"emptyLinePlaceholder":11},[403,844,846,848,850],{"class":405,"line":845},18,[403,847,729],{"class":674},[403,849,715],{"class":678},[403,851,734],{"class":552},[403,853,855,857,859,861],{"class":405,"line":854},19,[403,856,740],{"class":739},[403,858,744],{"class":743},[403,860,216],{"class":552},[403,862,863],{"class":749},"age\n",[403,865,867],{"class":405,"line":866},20,[403,868,590],{"class":552},[403,870,872],{"class":405,"line":871},21,[403,873,423],{"emptyLinePlaceholder":11},[403,875,877,880,883,886,888,891,893,895,897,899,901,904,906,909],{"class":405,"line":876},22,[403,878,879],{"class":674},"  constructor",[403,881,882],{"class":552},"(",[403,884,816],{"class":885},"sadQ_",[403,887,378],{"class":674},[403,889,890],{"class":696}," string",[403,892,134],{"class":552},[403,894,829],{"class":885},[403,896,378],{"class":674},[403,898,890],{"class":696},[403,900,134],{"class":552},[403,902,903],{"class":885},"age",[403,905,378],{"class":674},[403,907,908],{"class":696}," number",[403,910,911],{"class":552},") {\n",[403,913,915,918,920,924,926,928,930,932],{"class":405,"line":914},23,[403,916,917],{"class":743},"    this",[403,919,216],{"class":552},[403,921,923],{"class":922},"sHQ3f","setName",[403,925,882],{"class":552},[403,927,816],{"class":749},[403,929,134],{"class":552},[403,931,829],{"class":749},[403,933,934],{"class":552},")\n",[403,936,938,940,942,945,947,949],{"class":405,"line":937},24,[403,939,917],{"class":743},[403,941,216],{"class":552},[403,943,944],{"class":922},"setAge",[403,946,882],{"class":552},[403,948,903],{"class":749},[403,950,934],{"class":552},[403,952,954],{"class":405,"line":953},25,[403,955,590],{"class":552},[403,957,959],{"class":405,"line":958},26,[403,960,423],{"emptyLinePlaceholder":11},[403,962,964,967,969,971,973,975,977,979,981,983],{"class":405,"line":963},27,[403,965,966],{"class":678},"  setName",[403,968,882],{"class":552},[403,970,816],{"class":885},[403,972,378],{"class":674},[403,974,890],{"class":696},[403,976,134],{"class":552},[403,978,829],{"class":885},[403,980,378],{"class":674},[403,982,890],{"class":696},[403,984,911],{"class":552},[403,986,988,992,995,997,999,1002,1004,1006,1009,1012,1014,1016,1018,1020,1022],{"class":405,"line":987},28,[403,989,991],{"class":990},"sOygg","    if",[403,993,994],{"class":552}," (",[403,996,811],{"class":743},[403,998,216],{"class":552},[403,1000,1001],{"class":922},"validName",[403,1003,882],{"class":552},[403,1005,816],{"class":749},[403,1007,1008],{"class":552},") ",[403,1010,1011],{"class":674},"&&",[403,1013,744],{"class":743},[403,1015,216],{"class":552},[403,1017,1001],{"class":922},[403,1019,882],{"class":552},[403,1021,829],{"class":749},[403,1023,1024],{"class":552},")) {\n",[403,1026,1028,1031,1033,1035,1038],{"class":405,"line":1027},29,[403,1029,1030],{"class":743},"      this",[403,1032,216],{"class":552},[403,1034,816],{"class":749},[403,1036,1037],{"class":674}," =",[403,1039,1040],{"class":749}," firstName\n",[403,1042,1044,1046,1048,1050,1052],{"class":405,"line":1043},30,[403,1045,1030],{"class":743},[403,1047,216],{"class":552},[403,1049,829],{"class":749},[403,1051,1037],{"class":674},[403,1053,1054],{"class":749}," lastName\n",[403,1056,1058],{"class":405,"line":1057},31,[403,1059,1060],{"class":552},"    }\n",[403,1062,1064],{"class":405,"line":1063},32,[403,1065,590],{"class":552},[403,1067,1069],{"class":405,"line":1068},33,[403,1070,423],{"emptyLinePlaceholder":11},[403,1072,1074,1077,1079,1081,1083,1085],{"class":405,"line":1073},34,[403,1075,1076],{"class":678},"  setAge",[403,1078,882],{"class":552},[403,1080,903],{"class":885},[403,1082,378],{"class":674},[403,1084,908],{"class":696},[403,1086,911],{"class":552},[403,1088,1090,1092,1094,1096,1099,1102],{"class":405,"line":1089},35,[403,1091,991],{"class":990},[403,1093,994],{"class":552},[403,1095,903],{"class":749},[403,1097,1098],{"class":674}," >=",[403,1100,1101],{"class":584}," 18",[403,1103,911],{"class":552},[403,1105,1107,1109,1111,1113,1115],{"class":405,"line":1106},36,[403,1108,1030],{"class":743},[403,1110,216],{"class":552},[403,1112,903],{"class":749},[403,1114,1037],{"class":674},[403,1116,1117],{"class":749}," age\n",[403,1119,1121,1124,1127],{"class":405,"line":1120},37,[403,1122,1123],{"class":552},"    } ",[403,1125,1126],{"class":990},"else",[403,1128,682],{"class":552},[403,1130,1132,1136,1139,1142,1144,1147,1151,1153],{"class":405,"line":1131},38,[403,1133,1135],{"class":1134},"s2gQI","      throw",[403,1137,1138],{"class":670}," new",[403,1140,1141],{"class":922}," Error",[403,1143,882],{"class":552},[403,1145,1146],{"class":807},"'",[403,1148,1150],{"class":1149},"skTdI","User age must be greater than 18",[403,1152,1146],{"class":807},[403,1154,934],{"class":552},[403,1156,1158],{"class":405,"line":1157},39,[403,1159,1060],{"class":552},[403,1161,1163],{"class":405,"line":1162},40,[403,1164,590],{"class":552},[403,1166,1168],{"class":405,"line":1167},41,[403,1169,423],{"emptyLinePlaceholder":11},[403,1171,1173,1175,1178,1180,1183,1185,1187],{"class":405,"line":1172},42,[403,1174,687],{"class":670},[403,1176,1177],{"class":678}," validName",[403,1179,882],{"class":552},[403,1181,1182],{"class":885},"name",[403,1184,378],{"class":674},[403,1186,890],{"class":696},[403,1188,911],{"class":552},[403,1190,1192,1194,1196,1198,1200,1203,1206,1209,1212,1215,1218,1221,1225,1228,1231,1234,1236,1238,1241,1243,1245],{"class":405,"line":1191},43,[403,1193,991],{"class":990},[403,1195,994],{"class":552},[403,1197,1182],{"class":749},[403,1199,216],{"class":552},[403,1201,1202],{"class":562},"length",[403,1204,1205],{"class":674}," >",[403,1207,1208],{"class":584}," 0",[403,1210,1211],{"class":674}," &&",[403,1213,1214],{"class":807}," \u002F",[403,1216,1217],{"class":990},"^",[403,1219,1220],{"class":558},"[",[403,1222,1224],{"class":1223},"sZmgg","a-zA-Z",[403,1226,1227],{"class":558},"]",[403,1229,1230],{"class":674},"+",[403,1232,1233],{"class":990},"$",[403,1235,9],{"class":807},[403,1237,216],{"class":552},[403,1239,1240],{"class":922},"test",[403,1242,882],{"class":552},[403,1244,1182],{"class":749},[403,1246,1024],{"class":552},[403,1248,1250,1253],{"class":405,"line":1249},44,[403,1251,1252],{"class":739},"      return",[403,1254,1255],{"class":584}," true\n",[403,1257,1259,1261,1263],{"class":405,"line":1258},45,[403,1260,1123],{"class":552},[403,1262,1126],{"class":990},[403,1264,682],{"class":552},[403,1266,1268,1270,1272,1274,1276,1278,1281,1283],{"class":405,"line":1267},46,[403,1269,1135],{"class":1134},[403,1271,1138],{"class":670},[403,1273,1141],{"class":922},[403,1275,882],{"class":552},[403,1277,1146],{"class":807},[403,1279,1280],{"class":1149},"Invalid name format",[403,1282,1146],{"class":807},[403,1284,934],{"class":552},[403,1286,1288],{"class":405,"line":1287},47,[403,1289,1060],{"class":552},[403,1291,1293],{"class":405,"line":1292},48,[403,1294,590],{"class":552},[403,1296,1298],{"class":405,"line":1297},49,[403,1299,595],{"class":552},[59,1301,1302],{},"If, for example, the minimum age should be changed from 18 to 16 this logic needs only to be changed in this domain model class.",[59,1304,1305,1310],{},[63,1306,1309],{"href":1307,"rel":1308},"https:\u002F\u002Fcoryrylan.com\u002Fblog\u002Frich-domain-models-with-typescript",[67],"This article"," provides further details and a good approach to handling server-side business logic in your frontend application.",[105,1312,97],{"id":1313},"error-handling",[59,1315,1316,1317,1320],{},"I would always add a ",[117,1318,1319],{},"LoggerService"," and global error handler at the beginning of the project.",[59,1322,1323,1324,1329],{},"Additionally, try to use an error tracking software like ",[63,1325,1328],{"href":1326,"rel":1327},"https:\u002F\u002Fsentry.io\u002F",[67],"Sentry"," to be able to monitor and fix crashes in real-time.",[59,1331,1332,1333,378],{},"Example for a ",[117,1334,1319],{},[394,1336,1340],{"className":1337,"code":1338,"language":1339,"meta":399,"style":399},"language-ts shiki shiki-themes github-light poimandres poimandres","import { Injectable } from '@angular\u002Fcore'\n\n@Injectable()\nexport class LoggerService {\n  debug(message: string, ...optionalParams: unknown[]): void {\n    console.debug(message, ...optionalParams)\n  }\n\n  log(message: string, ...optionalParams: unknown[]): void {\n    console.log(message, ...optionalParams)\n  }\n\n  warn(message: string, ...optionalParams: unknown[]): void {\n    console.warn(message, ...optionalParams)\n  }\n\n  error(message: string, ...optionalParams: unknown[]): void {\n    \u002F\u002F Send error to Sentry\n    Sentry.captureMessage(`Error message: ${message}, optionalParams: ${JSON.stringify(optionalParams)}`)\n\n    console.error(message, ...optionalParams)\n  }\n}\n","ts",[117,1341,1342,1369,1373,1384,1395,1432,1454,1458,1462,1493,1514,1518,1522,1553,1574,1578,1582,1613,1618,1668,1672,1693,1697],{"__ignoreMap":399},[403,1343,1344,1347,1350,1354,1357,1360,1363,1366],{"class":405,"line":406},[403,1345,1346],{"class":670},"import",[403,1348,1349],{"class":552}," {",[403,1351,1353],{"class":1352},"srga6"," Injectable",[403,1355,1356],{"class":552}," }",[403,1358,1359],{"class":990}," from",[403,1361,1362],{"class":807}," '",[403,1364,1365],{"class":1149},"@angular\u002Fcore",[403,1367,1368],{"class":807},"'\n",[403,1370,1371],{"class":405,"line":420},[403,1372,423],{"emptyLinePlaceholder":11},[403,1374,1375,1378,1381],{"class":405,"line":426},[403,1376,1377],{"class":552},"@",[403,1379,1380],{"class":922},"Injectable",[403,1382,1383],{"class":552},"()\n",[403,1385,1386,1388,1390,1393],{"class":405,"line":437},[403,1387,671],{"class":670},[403,1389,675],{"class":674},[403,1391,1392],{"class":678}," LoggerService",[403,1394,682],{"class":552},[403,1396,1397,1400,1402,1405,1407,1409,1411,1414,1417,1419,1422,1425,1427,1430],{"class":405,"line":442},[403,1398,1399],{"class":678},"  debug",[403,1401,882],{"class":552},[403,1403,1404],{"class":885},"message",[403,1406,378],{"class":674},[403,1408,890],{"class":696},[403,1410,134],{"class":552},[403,1412,1413],{"class":674},"...",[403,1415,1416],{"class":885},"optionalParams",[403,1418,378],{"class":674},[403,1420,1421],{"class":696}," unknown",[403,1423,1424],{"class":552},"[])",[403,1426,378],{"class":674},[403,1428,1429],{"class":696}," void",[403,1431,682],{"class":552},[403,1433,1434,1437,1439,1442,1444,1446,1448,1450,1452],{"class":405,"line":453},[403,1435,1436],{"class":749},"    console",[403,1438,216],{"class":552},[403,1440,1441],{"class":922},"debug",[403,1443,882],{"class":552},[403,1445,1404],{"class":749},[403,1447,134],{"class":552},[403,1449,1413],{"class":674},[403,1451,1416],{"class":749},[403,1453,934],{"class":552},[403,1455,1456],{"class":405,"line":458},[403,1457,590],{"class":552},[403,1459,1460],{"class":405,"line":469},[403,1461,423],{"emptyLinePlaceholder":11},[403,1463,1464,1467,1469,1471,1473,1475,1477,1479,1481,1483,1485,1487,1489,1491],{"class":405,"line":474},[403,1465,1466],{"class":678},"  log",[403,1468,882],{"class":552},[403,1470,1404],{"class":885},[403,1472,378],{"class":674},[403,1474,890],{"class":696},[403,1476,134],{"class":552},[403,1478,1413],{"class":674},[403,1480,1416],{"class":885},[403,1482,378],{"class":674},[403,1484,1421],{"class":696},[403,1486,1424],{"class":552},[403,1488,378],{"class":674},[403,1490,1429],{"class":696},[403,1492,682],{"class":552},[403,1494,1495,1497,1499,1502,1504,1506,1508,1510,1512],{"class":405,"line":761},[403,1496,1436],{"class":749},[403,1498,216],{"class":552},[403,1500,1501],{"class":922},"log",[403,1503,882],{"class":552},[403,1505,1404],{"class":749},[403,1507,134],{"class":552},[403,1509,1413],{"class":674},[403,1511,1416],{"class":749},[403,1513,934],{"class":552},[403,1515,1516],{"class":405,"line":770},[403,1517,590],{"class":552},[403,1519,1520],{"class":405,"line":782},[403,1521,423],{"emptyLinePlaceholder":11},[403,1523,1524,1527,1529,1531,1533,1535,1537,1539,1541,1543,1545,1547,1549,1551],{"class":405,"line":787},[403,1525,1526],{"class":678},"  warn",[403,1528,882],{"class":552},[403,1530,1404],{"class":885},[403,1532,378],{"class":674},[403,1534,890],{"class":696},[403,1536,134],{"class":552},[403,1538,1413],{"class":674},[403,1540,1416],{"class":885},[403,1542,378],{"class":674},[403,1544,1421],{"class":696},[403,1546,1424],{"class":552},[403,1548,378],{"class":674},[403,1550,1429],{"class":696},[403,1552,682],{"class":552},[403,1554,1555,1557,1559,1562,1564,1566,1568,1570,1572],{"class":405,"line":792},[403,1556,1436],{"class":749},[403,1558,216],{"class":552},[403,1560,1561],{"class":922},"warn",[403,1563,882],{"class":552},[403,1565,1404],{"class":749},[403,1567,134],{"class":552},[403,1569,1413],{"class":674},[403,1571,1416],{"class":749},[403,1573,934],{"class":552},[403,1575,1576],{"class":405,"line":802},[403,1577,590],{"class":552},[403,1579,1580],{"class":405,"line":835},[403,1581,423],{"emptyLinePlaceholder":11},[403,1583,1584,1587,1589,1591,1593,1595,1597,1599,1601,1603,1605,1607,1609,1611],{"class":405,"line":840},[403,1585,1586],{"class":678},"  error",[403,1588,882],{"class":552},[403,1590,1404],{"class":885},[403,1592,378],{"class":674},[403,1594,890],{"class":696},[403,1596,134],{"class":552},[403,1598,1413],{"class":674},[403,1600,1416],{"class":885},[403,1602,378],{"class":674},[403,1604,1421],{"class":696},[403,1606,1424],{"class":552},[403,1608,378],{"class":674},[403,1610,1429],{"class":696},[403,1612,682],{"class":552},[403,1614,1615],{"class":405,"line":845},[403,1616,1617],{"class":416},"    \u002F\u002F Send error to Sentry\n",[403,1619,1620,1623,1625,1628,1630,1633,1636,1639,1641,1643,1646,1648,1651,1653,1656,1658,1660,1663,1666],{"class":405,"line":854},[403,1621,1622],{"class":749},"    Sentry",[403,1624,216],{"class":552},[403,1626,1627],{"class":922},"captureMessage",[403,1629,882],{"class":552},[403,1631,1632],{"class":807},"`",[403,1634,1635],{"class":1149},"Error message: ",[403,1637,1638],{"class":807},"${",[403,1640,1404],{"class":749},[403,1642,819],{"class":807},[403,1644,1645],{"class":1149},", optionalParams: ",[403,1647,1638],{"class":807},[403,1649,1650],{"class":482},"JSON",[403,1652,216],{"class":807},[403,1654,1655],{"class":922},"stringify",[403,1657,882],{"class":807},[403,1659,1416],{"class":749},[403,1661,1662],{"class":807},")",[403,1664,1665],{"class":807},"}`",[403,1667,934],{"class":552},[403,1669,1670],{"class":405,"line":866},[403,1671,423],{"emptyLinePlaceholder":11},[403,1673,1674,1676,1678,1681,1683,1685,1687,1689,1691],{"class":405,"line":871},[403,1675,1436],{"class":749},[403,1677,216],{"class":552},[403,1679,1680],{"class":922},"error",[403,1682,882],{"class":552},[403,1684,1404],{"class":749},[403,1686,134],{"class":552},[403,1688,1413],{"class":674},[403,1690,1416],{"class":749},[403,1692,934],{"class":552},[403,1694,1695],{"class":405,"line":876},[403,1696,590],{"class":552},[403,1698,1699],{"class":405,"line":914},[403,1700,595],{"class":552},[59,1702,1703,1704,378],{},"To catch global errors in Angular, you can use the ",[63,1705,1708],{"href":1706,"rel":1707},"https:\u002F\u002Fangular.io\u002Fapi\u002Fcore\u002FErrorHandler",[67],"ErrorHandler",[394,1710,1712],{"className":1337,"code":1711,"language":1339,"meta":399,"style":399},"class MyErrorHandler implements ErrorHandler {\n  constructor(loggerService: LoggerService) {}\n\n  handleError(error) {\n    \u002F\u002F Send error to Sentry\n    Sentry.captureError(error)\n  }\n}\n\n@NgModule({\n  providers: [{ provide: ErrorHandler, useClass: MyErrorHandler }],\n})\nclass CoreModule {}\n",[117,1713,1714,1730,1747,1751,1762,1766,1781,1785,1789,1793,1803,1833,1838],{"__ignoreMap":399},[403,1715,1716,1719,1722,1725,1728],{"class":405,"line":406},[403,1717,1718],{"class":674},"class",[403,1720,1721],{"class":678}," MyErrorHandler",[403,1723,1724],{"class":670}," implements",[403,1726,1727],{"class":678}," ErrorHandler",[403,1729,682],{"class":552},[403,1731,1732,1734,1736,1739,1741,1744],{"class":405,"line":420},[403,1733,879],{"class":674},[403,1735,882],{"class":552},[403,1737,1738],{"class":885},"loggerService",[403,1740,378],{"class":674},[403,1742,1392],{"class":1743},"s4XUm",[403,1745,1746],{"class":552},") {}\n",[403,1748,1749],{"class":405,"line":426},[403,1750,423],{"emptyLinePlaceholder":11},[403,1752,1753,1756,1758,1760],{"class":405,"line":437},[403,1754,1755],{"class":678},"  handleError",[403,1757,882],{"class":552},[403,1759,1680],{"class":885},[403,1761,911],{"class":552},[403,1763,1764],{"class":405,"line":442},[403,1765,1617],{"class":416},[403,1767,1768,1770,1772,1775,1777,1779],{"class":405,"line":453},[403,1769,1622],{"class":749},[403,1771,216],{"class":552},[403,1773,1774],{"class":922},"captureError",[403,1776,882],{"class":552},[403,1778,1680],{"class":749},[403,1780,934],{"class":552},[403,1782,1783],{"class":405,"line":458},[403,1784,590],{"class":552},[403,1786,1787],{"class":405,"line":469},[403,1788,595],{"class":552},[403,1790,1791],{"class":405,"line":474},[403,1792,423],{"emptyLinePlaceholder":11},[403,1794,1795,1797,1800],{"class":405,"line":761},[403,1796,1377],{"class":552},[403,1798,1799],{"class":922},"NgModule",[403,1801,1802],{"class":552},"({\n",[403,1804,1805,1808,1810,1813,1816,1818,1820,1823,1826,1828,1830],{"class":405,"line":770},[403,1806,1807],{"class":1352},"  providers",[403,1809,378],{"class":552},[403,1811,1812],{"class":552}," [{",[403,1814,1815],{"class":1352}," provide",[403,1817,378],{"class":552},[403,1819,1727],{"class":749},[403,1821,1822],{"class":552},",",[403,1824,1825],{"class":1352}," useClass",[403,1827,378],{"class":552},[403,1829,1721],{"class":749},[403,1831,1832],{"class":552}," }],\n",[403,1834,1835],{"class":405,"line":782},[403,1836,1837],{"class":552},"})\n",[403,1839,1840,1842,1845],{"class":405,"line":787},[403,1841,1718],{"class":674},[403,1843,1844],{"class":678}," CoreModule",[403,1846,1847],{"class":552}," {}\n",[105,1849,100],{"id":1850},"build-complex-components",[59,1852,1853],{},"Often we need to develop complex components in our applications. For this case, I suggest the following:",[59,1855,1856,1857,1862],{},"Try to solve your problem using the fantastic ",[63,1858,1861],{"href":1859,"rel":1860},"https:\u002F\u002Fmaterial.angular.io\u002Fcdk\u002Fcategories",[67],"Angular CDK",", which provides a set of tools that implement common interaction patterns while being unopinionated about their presentation. Examples are tools for accessibility, overlays, scrolling, drag & drop, tables and more.",[59,1864,1865,1866,1871],{},"If you build your component, look at existing open-source Angular libraries like ",[63,1867,1870],{"href":1868,"rel":1869},"https:\u002F\u002Fgithub.com\u002Fangular\u002Fcomponents",[67],"Angular Material",". There you can see how components are written the \"Angular way\".",[59,1873,1874,1875,537,1880,1885],{},"You can also look for existing Angular components in npm. Therefore I can recommend taking a look at curated component lists like ",[63,1876,1879],{"href":1877,"rel":1878},"https:\u002F\u002Fgithub.com\u002Fbrillout\u002Fawesome-angular-components",[67],"Awesome Angular Components",[63,1881,1884],{"href":1882,"rel":1883},"https:\u002F\u002Fgithub.com\u002FPatrickJS\u002Fawesome-angular",[67],"Awesome Angular",". Anyways, I would advise checking the following for each 3rd party library you want to integrate into your project:",[77,1887,1888,1891,1894],{},[80,1889,1890],{},"When was it published the last time?",[80,1892,1893],{},"Is it actively maintained? How many open issues are on GitHub?",[80,1895,1896],{},"Is it actively used by checking npm weekly download numbers?",[105,1898,103],{"id":1899},"miscellaneous",[77,1901,1902,1909,1922,1930,1938],{},[80,1903,1904,1905,1908],{},"Use ",[63,1906,145],{"href":143,"rel":1907},[67]," as code formatter",[80,1910,1904,1911,134,1916,1921],{},[63,1912,1915],{"href":1913,"rel":1914},"https:\u002F\u002Faugury.rangle.io\u002F",[67],"Augury",[63,1917,1920],{"href":1918,"rel":1919},"https:\u002F\u002Fchrome.google.com\u002Fwebstore\u002Fdetail\u002Fredux-devtools\u002Flmhkpmbekcpmknklioeibfkpmmfibljd",[67],"Redux DevTools"," or any other useful browser dev tools",[80,1923,1904,1924,1929],{},[63,1925,1928],{"href":1926,"rel":1927},"https:\u002F\u002Fgithub.com\u002Fcompodoc\u002Fcompodoc",[67],"Compodoc"," (or any other similar tool) to generate documentation for your application.",[80,1931,1904,1932,1937],{},[63,1933,1936],{"href":1934,"rel":1935},"https:\u002F\u002Fgithub.com\u002Ftypicode\u002Fhusky",[67],"Husky"," to check if the commit message has the correct format, the code is formatted, the linter has no errors, and the run unit tests before you push your code.",[80,1939,1940,1945],{},[63,1941,1944],{"href":1942,"rel":1943},"https:\u002F\u002Fangular.io\u002Fguide\u002Flazy-loading-ngmodules",[67],"Lazy load"," all your modules. This way, you can split your application into smaller bundles that are only loaded if necessary.",[105,1947,1949],{"id":1948},"conclusion","Conclusion",[59,1951,1952],{},"It is essential to agree with your team on such an opinionated setup. I would propose this approach to the team, discuss alternatives, advantages, and disadvantages and try to find a good compromise. In the end, the project should be scalable, and the team should be able to deliver features quickly.",[59,1954,1955],{},"This article showed you my approach to setting up a new Angular project. It is not complete and maybe not a perfect approach, but it is my experience, so your suggestions are always welcome in the comments.",[59,1957,1958,1959,1964],{},"I recommend reading this free eBook from Manfred Steyer ",[63,1960,1963],{"href":1961,"rel":1962},"https:\u002F\u002Fleanpub.com\u002Fenterprise-angular",[67],"Enterprise Angular - DDD, Nx Monorepos and Micro Frontends",", which covers a lot of the discussed topics in more detail.",[1966,1967,1968],"style",{},"html pre.shiki code .sgaD9, html code.shiki .sgaD9{--shiki-light:#6F42C1;--shiki-default:#91B4D5;--shiki-dark:#91B4D5}html pre.shiki code .sMmyg, html code.shiki .sMmyg{--shiki-light:#032F62;--shiki-default:#ADD7FF;--shiki-dark:#ADD7FF}html pre.shiki code .s1MN7, html code.shiki .s1MN7{--shiki-light:#6A737D;--shiki-light-font-style:inherit;--shiki-default:#767C9DB0;--shiki-default-font-style:italic;--shiki-dark:#767C9DB0;--shiki-dark-font-style:italic}html pre.shiki code .snkik, html code.shiki .snkik{--shiki-light:#005CC5;--shiki-default:#ADD7FF;--shiki-dark:#ADD7FF}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .sygvE, html code.shiki .sygvE{--shiki-light:#24292E;--shiki-default:#A6ACCD;--shiki-dark:#A6ACCD}html pre.shiki code .saHH4, html code.shiki .saHH4{--shiki-light:#005CC5;--shiki-default:#A6ACCD;--shiki-dark:#A6ACCD}html pre.shiki code .sGRIV, html code.shiki .sGRIV{--shiki-light:#005CC5;--shiki-default:#E4F0FB;--shiki-dark:#E4F0FB}html pre.shiki code .s6g4C, html code.shiki .s6g4C{--shiki-light:#005CC5;--shiki-default:#5DE4C7;--shiki-dark:#5DE4C7}html pre.shiki code .sRZEA, html code.shiki .sRZEA{--shiki-light:#D73A49;--shiki-default:#5DE4C7;--shiki-dark:#5DE4C7}html pre.shiki code .slWGy, html code.shiki .slWGy{--shiki-light:#D73A49;--shiki-default:#91B4D5;--shiki-dark:#91B4D5}html pre.shiki code .sBmmg, html code.shiki .sBmmg{--shiki-light:#6F42C1;--shiki-default:#ADD7FF;--shiki-dark:#ADD7FF}html pre.shiki code .sPC-1, html code.shiki .sPC-1{--shiki-light:#E36209;--shiki-default:#A6ACCD;--shiki-dark:#A6ACCD}html pre.shiki code .svhIC, html code.shiki .svhIC{--shiki-light:#005CC5;--shiki-default:#A6ACCDC0;--shiki-dark:#A6ACCDC0}html pre.shiki code .sdZ-l, html code.shiki .sdZ-l{--shiki-light:#D73A49;--shiki-default:#5DE4C7C0;--shiki-dark:#5DE4C7C0}html pre.shiki code .sk88d, html code.shiki .sk88d{--shiki-light:#005CC5;--shiki-light-font-style:inherit;--shiki-default:#5DE4C7;--shiki-default-font-style:italic;--shiki-dark:#5DE4C7;--shiki-dark-font-style:italic}html pre.shiki code .sMzB8, html code.shiki .sMzB8{--shiki-light:#24292E;--shiki-default:#E4F0FB;--shiki-dark:#E4F0FB}html pre.shiki code .srEIG, html code.shiki .srEIG{--shiki-light:#032F62;--shiki-default:#A6ACCD;--shiki-dark:#A6ACCD}html pre.shiki code .sadQ_, html code.shiki .sadQ_{--shiki-light:#E36209;--shiki-default:#E4F0FB;--shiki-dark:#E4F0FB}html pre.shiki code .sHQ3f, html code.shiki .sHQ3f{--shiki-light:#6F42C1;--shiki-default:#E4F0FBD0;--shiki-dark:#E4F0FBD0}html pre.shiki code .sOygg, html code.shiki .sOygg{--shiki-light:#D73A49;--shiki-default:#A6ACCD;--shiki-dark:#A6ACCD}html pre.shiki code .s2gQI, html code.shiki .s2gQI{--shiki-light:#D73A49;--shiki-default:#D0679D;--shiki-dark:#D0679D}html pre.shiki code .skTdI, html code.shiki .skTdI{--shiki-light:#032F62;--shiki-default:#5DE4C7;--shiki-dark:#5DE4C7}html pre.shiki code .sZmgg, html code.shiki .sZmgg{--shiki-light:#005CC5;--shiki-default:#5FB3A1;--shiki-dark:#5FB3A1}html pre.shiki code .srga6, html code.shiki .srga6{--shiki-light:#24292E;--shiki-default:#ADD7FF;--shiki-dark:#ADD7FF}html pre.shiki code .s4XUm, html code.shiki .s4XUm{--shiki-light:#6F42C1;--shiki-default:#A6ACCDC0;--shiki-dark:#A6ACCDC0}",{"title":399,"searchDepth":420,"depth":420,"links":1970},[1971,1976,1977,1978,1979,1980,1981,1982,1983],{"id":107,"depth":420,"text":108,"children":1972},[1973,1974,1975],{"id":169,"depth":426,"text":170},{"id":225,"depth":426,"text":226},{"id":330,"depth":426,"text":331},{"id":498,"depth":420,"text":499},{"id":610,"depth":420,"text":611},{"id":634,"depth":420,"text":91},{"id":648,"depth":420,"text":649},{"id":1313,"depth":420,"text":97},{"id":1850,"depth":420,"text":100},{"id":1899,"depth":420,"text":103},{"id":1948,"depth":420,"text":1949},[1985,1986,1987],"development","angular","frontend","blog\u002Fhow-i-set-up-a-new-angular-project\u002Fcover_v38nf9.jpg","2019-07-06","I think Angular is the best choice for large enterprise applications. The basic project setup, which is generated using the Angular CLI is good, but I prefer another way to set up a new project. In this article, I want to talk about these topics:","md","2019-11-01",{"subTitle":1994},null,"\u002Fblog\u002Fhow-i-set-up-a-new-angular-project",{"text":1997,"minutes":1998,"time":1999,"words":2000},"10 min read",9.73,583800,1946,{"title":54,"description":1990},{"loc":1995,"images":2003,"lastmod":1989},[2004],{"loc":385},"blog\u002Fhow-i-set-up-a-new-angular-project\u002Findex","z0dFpptigLHPVqRM_yCZ25tUC5ixkwuAnRV4gG_W1io",{"id":2008,"title":54,"body":2009,"cover":1988,"description":1990,"extension":1991,"meta":3460,"navigation":11,"path":1995,"robots":1994,"seo":3463,"sitemap":3464,"stem":2005,"__hash__":3467},"content\u002Fblog\u002Fhow-i-set-up-a-new-angular-project\u002Findex.md",{"type":56,"value":2010,"toc":3445},[2011,2019,2037,2039,2046,2048,2063,2067,2075,2077,2082,2084,2102,2107,2109,2111,2113,2115,2126,2131,2133,2154,2156,2164,2166,2179,2181,2183,2197,2199,2207,2209,2213,2217,2221,2283,2288,2290,2301,2314,2352,2357,2361,2363,2365,2371,2376,2378,2383,2385,2387,2389,2391,2393,2901,2903,2908,2910,2914,2919,2923,3247,3252,3370,3372,3374,3379,3384,3392,3400,3402,3432,3434,3436,3438,3443],[59,2012,61,2013,69,2016,75],{},[63,2014,68],{"href":65,"rel":2015},[67],[63,2017,74],{"href":72,"rel":2018},[67],[77,2020,2021,2023,2025,2027,2029,2031,2033,2035],{},[80,2022,82],{},[80,2024,85],{},[80,2026,88],{},[80,2028,91],{},[80,2030,94],{},[80,2032,97],{},[80,2034,100],{},[80,2036,103],{},[105,2038,108],{"id":107},[59,2040,2041,115,2044,120],{},[63,2042,108],{"href":113,"rel":2043},[67],[117,2045,119],{},[59,2047,123],{},[77,2049,2050,2061],{},[80,2051,128,2052,134,2055,140,2058,146],{},[63,2053,133],{"href":131,"rel":2054},[67],[63,2056,139],{"href":137,"rel":2057},[67],[63,2059,145],{"href":143,"rel":2060},[67],[80,2062,149],{},[151,2064,2065],{},[59,2066,155],{},[59,2068,158,2069,140,2072,165],{},[63,2070,133],{"href":131,"rel":2071},[67],[63,2073,139],{"href":137,"rel":2074},[67],[167,2076,170],{"id":169},[59,2078,2079,178],{},[63,2080,177],{"href":175,"rel":2081},[67],[59,2083,181],{},[77,2085,2086,2088,2090,2092,2094,2096,2098,2100],{},[80,2087,186],{},[80,2089,189],{},[80,2091,192],{},[80,2093,195],{},[80,2095,198],{},[80,2097,201],{},[80,2099,204],{},[80,2101,207],{},[59,2103,210,2104,216],{},[63,2105,215],{"href":213,"rel":2106},[67],[59,2108,219],{},[59,2110,222],{},[167,2112,226],{"id":225},[59,2114,229],{},[77,2116,2117,2119,2121],{},[80,2118,234],{},[80,2120,237],{},[80,2122,240,2123,246],{},[63,2124,245],{"href":243,"rel":2125},[67],[59,2127,2128,252],{},[63,2129,139],{"href":137,"rel":2130},[67],[59,2132,255],{},[77,2134,2135,2137,2141,2143,2145,2147,2152],{},[80,2136,260],{},[80,2138,263,2139],{},[117,2140,266],{},[80,2142,269],{},[80,2144,272],{},[80,2146,275],{},[80,2148,278,2149],{},[63,2150,283],{"href":281,"rel":2151},[67],[80,2153,286],{},[59,2155,289],{},[59,2157,292,2158,298,2161,304],{},[63,2159,297],{"href":295,"rel":2160},[67],[63,2162,303],{"href":301,"rel":2163},[67],[59,2165,307],{},[77,2167,2168,2170,2172,2177],{},[80,2169,312],{},[80,2171,315],{},[80,2173,318,2174,324],{},[63,2175,323],{"href":321,"rel":2176},[67],[80,2178,327],{},[167,2180,331],{"id":330},[59,2182,334],{},[77,2184,2185,2187,2189,2193,2195],{},[80,2186,339],{},[80,2188,342],{},[80,2190,345,2191,349],{},[117,2192,348],{},[80,2194,352],{},[80,2196,355],{},[59,2198,358],{},[151,2200,2201],{},[77,2202,2203,2205],{},[80,2204,365],{},[80,2206,368],{},[59,2208,371],{},[59,2210,374,2211,378],{},[117,2212,377],{},[59,2214,2215],{},[382,2216],{"alt":384,"src":385},[59,2218,388,2219,392],{},[117,2220,391],{},[394,2222,2223],{"className":396,"code":397,"language":398,"meta":399,"style":399},[117,2224,2225,2233,2237,2245,2249,2257,2261,2269,2273],{"__ignoreMap":399},[403,2226,2227,2229,2231],{"class":405,"line":406},[403,2228,107],{"class":409},[403,2230,413],{"class":412},[403,2232,417],{"class":416},[403,2234,2235],{"class":405,"line":420},[403,2236,423],{"emptyLinePlaceholder":11},[403,2238,2239,2241,2243],{"class":405,"line":426},[403,2240,107],{"class":409},[403,2242,431],{"class":412},[403,2244,434],{"class":416},[403,2246,2247],{"class":405,"line":437},[403,2248,423],{"emptyLinePlaceholder":11},[403,2250,2251,2253,2255],{"class":405,"line":442},[403,2252,107],{"class":409},[403,2254,447],{"class":412},[403,2256,450],{"class":416},[403,2258,2259],{"class":405,"line":453},[403,2260,423],{"emptyLinePlaceholder":11},[403,2262,2263,2265,2267],{"class":405,"line":458},[403,2264,107],{"class":409},[403,2266,463],{"class":412},[403,2268,466],{"class":416},[403,2270,2271],{"class":405,"line":469},[403,2272,423],{"emptyLinePlaceholder":11},[403,2274,2275,2277,2279,2281],{"class":405,"line":474},[403,2276,107],{"class":409},[403,2278,479],{"class":412},[403,2280,483],{"class":482},[403,2282,486],{"class":416},[59,2284,489,2285,495],{},[63,2286,494],{"href":492,"rel":2287},[67],[105,2289,499],{"id":498},[59,2291,502,2292,508,2295,513,2298,216],{},[63,2293,507],{"href":505,"rel":2294},[67],[63,2296,74],{"href":511,"rel":2297},[67],[63,2299,518],{"href":516,"rel":2300},[67],[59,2302,521,2303,525,2305,533,2310,537,2312,541],{},[117,2304,524],{},[63,2306,2308],{"href":528,"rel":2307},[67],[117,2309,532],{},[117,2311,536],{},[117,2313,540],{},[394,2315,2316],{"className":544,"code":545,"language":5,"meta":399,"style":399},[117,2317,2318,2322,2332,2344,2348],{"__ignoreMap":399},[403,2319,2320],{"class":405,"line":406},[403,2321,553],{"class":552},[403,2323,2324,2326,2328,2330],{"class":405,"line":420},[403,2325,559],{"class":558},[403,2327,563],{"class":562},[403,2329,566],{"class":558},[403,2331,569],{"class":552},[403,2333,2334,2336,2338,2340,2342],{"class":405,"line":426},[403,2335,574],{"class":558},[403,2337,532],{"class":482},[403,2339,566],{"class":558},[403,2341,581],{"class":552},[403,2343,585],{"class":584},[403,2345,2346],{"class":405,"line":437},[403,2347,590],{"class":552},[403,2349,2350],{"class":405,"line":442},[403,2351,595],{"class":552},[59,2353,598,2354,378],{},[63,2355,494],{"href":601,"rel":2356},[67],[151,2358,2359],{},[59,2360,607],{},[105,2362,611],{"id":610},[59,2364,614],{},[77,2366,2367,2369],{},[80,2368,619],{},[80,2370,622],{},[59,2372,625,2373,631],{},[63,2374,630],{"href":628,"rel":2375},[67],[105,2377,91],{"id":634},[59,2379,637,2380,216],{},[63,2381,642],{"href":640,"rel":2382},[67],[59,2384,645],{},[105,2386,649],{"id":648},[59,2388,652],{},[59,2390,655],{},[59,2392,658],{},[394,2394,2395],{"className":661,"code":662,"language":663,"meta":399,"style":399},[117,2396,2397,2407,2417,2427,2437,2441,2449,2459,2463,2467,2475,2485,2489,2493,2501,2525,2529,2533,2541,2551,2555,2559,2589,2607,2621,2625,2629,2651,2683,2695,2707,2711,2715,2719,2733,2747,2759,2767,2785,2789,2793,2797,2813,2857,2863,2871,2889,2893,2897],{"__ignoreMap":399},[403,2398,2399,2401,2403,2405],{"class":405,"line":406},[403,2400,671],{"class":670},[403,2402,675],{"class":674},[403,2404,679],{"class":678},[403,2406,682],{"class":552},[403,2408,2409,2411,2413,2415],{"class":405,"line":420},[403,2410,687],{"class":670},[403,2412,691],{"class":690},[403,2414,378],{"class":674},[403,2416,697],{"class":696},[403,2418,2419,2421,2423,2425],{"class":405,"line":426},[403,2420,687],{"class":670},[403,2422,704],{"class":690},[403,2424,378],{"class":674},[403,2426,697],{"class":696},[403,2428,2429,2431,2433,2435],{"class":405,"line":437},[403,2430,687],{"class":670},[403,2432,715],{"class":690},[403,2434,378],{"class":674},[403,2436,720],{"class":696},[403,2438,2439],{"class":405,"line":442},[403,2440,423],{"emptyLinePlaceholder":11},[403,2442,2443,2445,2447],{"class":405,"line":453},[403,2444,729],{"class":674},[403,2446,691],{"class":678},[403,2448,734],{"class":552},[403,2450,2451,2453,2455,2457],{"class":405,"line":458},[403,2452,740],{"class":739},[403,2454,744],{"class":743},[403,2456,216],{"class":552},[403,2458,750],{"class":749},[403,2460,2461],{"class":405,"line":469},[403,2462,590],{"class":552},[403,2464,2465],{"class":405,"line":474},[403,2466,423],{"emptyLinePlaceholder":11},[403,2468,2469,2471,2473],{"class":405,"line":761},[403,2470,729],{"class":674},[403,2472,704],{"class":678},[403,2474,734],{"class":552},[403,2476,2477,2479,2481,2483],{"class":405,"line":770},[403,2478,740],{"class":739},[403,2480,744],{"class":743},[403,2482,216],{"class":552},[403,2484,779],{"class":749},[403,2486,2487],{"class":405,"line":782},[403,2488,590],{"class":552},[403,2490,2491],{"class":405,"line":787},[403,2492,423],{"emptyLinePlaceholder":11},[403,2494,2495,2497,2499],{"class":405,"line":792},[403,2496,729],{"class":674},[403,2498,797],{"class":678},[403,2500,734],{"class":552},[403,2502,2503,2505,2507,2509,2511,2513,2515,2517,2519,2521,2523],{"class":405,"line":802},[403,2504,740],{"class":739},[403,2506,808],{"class":807},[403,2508,811],{"class":743},[403,2510,216],{"class":807},[403,2512,816],{"class":749},[403,2514,819],{"class":807},[403,2516,822],{"class":807},[403,2518,811],{"class":743},[403,2520,216],{"class":807},[403,2522,829],{"class":749},[403,2524,832],{"class":807},[403,2526,2527],{"class":405,"line":835},[403,2528,590],{"class":552},[403,2530,2531],{"class":405,"line":840},[403,2532,423],{"emptyLinePlaceholder":11},[403,2534,2535,2537,2539],{"class":405,"line":845},[403,2536,729],{"class":674},[403,2538,715],{"class":678},[403,2540,734],{"class":552},[403,2542,2543,2545,2547,2549],{"class":405,"line":854},[403,2544,740],{"class":739},[403,2546,744],{"class":743},[403,2548,216],{"class":552},[403,2550,863],{"class":749},[403,2552,2553],{"class":405,"line":866},[403,2554,590],{"class":552},[403,2556,2557],{"class":405,"line":871},[403,2558,423],{"emptyLinePlaceholder":11},[403,2560,2561,2563,2565,2567,2569,2571,2573,2575,2577,2579,2581,2583,2585,2587],{"class":405,"line":876},[403,2562,879],{"class":674},[403,2564,882],{"class":552},[403,2566,816],{"class":885},[403,2568,378],{"class":674},[403,2570,890],{"class":696},[403,2572,134],{"class":552},[403,2574,829],{"class":885},[403,2576,378],{"class":674},[403,2578,890],{"class":696},[403,2580,134],{"class":552},[403,2582,903],{"class":885},[403,2584,378],{"class":674},[403,2586,908],{"class":696},[403,2588,911],{"class":552},[403,2590,2591,2593,2595,2597,2599,2601,2603,2605],{"class":405,"line":914},[403,2592,917],{"class":743},[403,2594,216],{"class":552},[403,2596,923],{"class":922},[403,2598,882],{"class":552},[403,2600,816],{"class":749},[403,2602,134],{"class":552},[403,2604,829],{"class":749},[403,2606,934],{"class":552},[403,2608,2609,2611,2613,2615,2617,2619],{"class":405,"line":937},[403,2610,917],{"class":743},[403,2612,216],{"class":552},[403,2614,944],{"class":922},[403,2616,882],{"class":552},[403,2618,903],{"class":749},[403,2620,934],{"class":552},[403,2622,2623],{"class":405,"line":953},[403,2624,590],{"class":552},[403,2626,2627],{"class":405,"line":958},[403,2628,423],{"emptyLinePlaceholder":11},[403,2630,2631,2633,2635,2637,2639,2641,2643,2645,2647,2649],{"class":405,"line":963},[403,2632,966],{"class":678},[403,2634,882],{"class":552},[403,2636,816],{"class":885},[403,2638,378],{"class":674},[403,2640,890],{"class":696},[403,2642,134],{"class":552},[403,2644,829],{"class":885},[403,2646,378],{"class":674},[403,2648,890],{"class":696},[403,2650,911],{"class":552},[403,2652,2653,2655,2657,2659,2661,2663,2665,2667,2669,2671,2673,2675,2677,2679,2681],{"class":405,"line":987},[403,2654,991],{"class":990},[403,2656,994],{"class":552},[403,2658,811],{"class":743},[403,2660,216],{"class":552},[403,2662,1001],{"class":922},[403,2664,882],{"class":552},[403,2666,816],{"class":749},[403,2668,1008],{"class":552},[403,2670,1011],{"class":674},[403,2672,744],{"class":743},[403,2674,216],{"class":552},[403,2676,1001],{"class":922},[403,2678,882],{"class":552},[403,2680,829],{"class":749},[403,2682,1024],{"class":552},[403,2684,2685,2687,2689,2691,2693],{"class":405,"line":1027},[403,2686,1030],{"class":743},[403,2688,216],{"class":552},[403,2690,816],{"class":749},[403,2692,1037],{"class":674},[403,2694,1040],{"class":749},[403,2696,2697,2699,2701,2703,2705],{"class":405,"line":1043},[403,2698,1030],{"class":743},[403,2700,216],{"class":552},[403,2702,829],{"class":749},[403,2704,1037],{"class":674},[403,2706,1054],{"class":749},[403,2708,2709],{"class":405,"line":1057},[403,2710,1060],{"class":552},[403,2712,2713],{"class":405,"line":1063},[403,2714,590],{"class":552},[403,2716,2717],{"class":405,"line":1068},[403,2718,423],{"emptyLinePlaceholder":11},[403,2720,2721,2723,2725,2727,2729,2731],{"class":405,"line":1073},[403,2722,1076],{"class":678},[403,2724,882],{"class":552},[403,2726,903],{"class":885},[403,2728,378],{"class":674},[403,2730,908],{"class":696},[403,2732,911],{"class":552},[403,2734,2735,2737,2739,2741,2743,2745],{"class":405,"line":1089},[403,2736,991],{"class":990},[403,2738,994],{"class":552},[403,2740,903],{"class":749},[403,2742,1098],{"class":674},[403,2744,1101],{"class":584},[403,2746,911],{"class":552},[403,2748,2749,2751,2753,2755,2757],{"class":405,"line":1106},[403,2750,1030],{"class":743},[403,2752,216],{"class":552},[403,2754,903],{"class":749},[403,2756,1037],{"class":674},[403,2758,1117],{"class":749},[403,2760,2761,2763,2765],{"class":405,"line":1120},[403,2762,1123],{"class":552},[403,2764,1126],{"class":990},[403,2766,682],{"class":552},[403,2768,2769,2771,2773,2775,2777,2779,2781,2783],{"class":405,"line":1131},[403,2770,1135],{"class":1134},[403,2772,1138],{"class":670},[403,2774,1141],{"class":922},[403,2776,882],{"class":552},[403,2778,1146],{"class":807},[403,2780,1150],{"class":1149},[403,2782,1146],{"class":807},[403,2784,934],{"class":552},[403,2786,2787],{"class":405,"line":1157},[403,2788,1060],{"class":552},[403,2790,2791],{"class":405,"line":1162},[403,2792,590],{"class":552},[403,2794,2795],{"class":405,"line":1167},[403,2796,423],{"emptyLinePlaceholder":11},[403,2798,2799,2801,2803,2805,2807,2809,2811],{"class":405,"line":1172},[403,2800,687],{"class":670},[403,2802,1177],{"class":678},[403,2804,882],{"class":552},[403,2806,1182],{"class":885},[403,2808,378],{"class":674},[403,2810,890],{"class":696},[403,2812,911],{"class":552},[403,2814,2815,2817,2819,2821,2823,2825,2827,2829,2831,2833,2835,2837,2839,2841,2843,2845,2847,2849,2851,2853,2855],{"class":405,"line":1191},[403,2816,991],{"class":990},[403,2818,994],{"class":552},[403,2820,1182],{"class":749},[403,2822,216],{"class":552},[403,2824,1202],{"class":562},[403,2826,1205],{"class":674},[403,2828,1208],{"class":584},[403,2830,1211],{"class":674},[403,2832,1214],{"class":807},[403,2834,1217],{"class":990},[403,2836,1220],{"class":558},[403,2838,1224],{"class":1223},[403,2840,1227],{"class":558},[403,2842,1230],{"class":674},[403,2844,1233],{"class":990},[403,2846,9],{"class":807},[403,2848,216],{"class":552},[403,2850,1240],{"class":922},[403,2852,882],{"class":552},[403,2854,1182],{"class":749},[403,2856,1024],{"class":552},[403,2858,2859,2861],{"class":405,"line":1249},[403,2860,1252],{"class":739},[403,2862,1255],{"class":584},[403,2864,2865,2867,2869],{"class":405,"line":1258},[403,2866,1123],{"class":552},[403,2868,1126],{"class":990},[403,2870,682],{"class":552},[403,2872,2873,2875,2877,2879,2881,2883,2885,2887],{"class":405,"line":1267},[403,2874,1135],{"class":1134},[403,2876,1138],{"class":670},[403,2878,1141],{"class":922},[403,2880,882],{"class":552},[403,2882,1146],{"class":807},[403,2884,1280],{"class":1149},[403,2886,1146],{"class":807},[403,2888,934],{"class":552},[403,2890,2891],{"class":405,"line":1287},[403,2892,1060],{"class":552},[403,2894,2895],{"class":405,"line":1292},[403,2896,590],{"class":552},[403,2898,2899],{"class":405,"line":1297},[403,2900,595],{"class":552},[59,2902,1302],{},[59,2904,2905,1310],{},[63,2906,1309],{"href":1307,"rel":2907},[67],[105,2909,97],{"id":1313},[59,2911,1316,2912,1320],{},[117,2913,1319],{},[59,2915,1323,2916,1329],{},[63,2917,1328],{"href":1326,"rel":2918},[67],[59,2920,1332,2921,378],{},[117,2922,1319],{},[394,2924,2925],{"className":1337,"code":1338,"language":1339,"meta":399,"style":399},[117,2926,2927,2945,2949,2957,2967,2997,3017,3021,3025,3055,3075,3079,3083,3113,3133,3137,3141,3171,3175,3215,3219,3239,3243],{"__ignoreMap":399},[403,2928,2929,2931,2933,2935,2937,2939,2941,2943],{"class":405,"line":406},[403,2930,1346],{"class":670},[403,2932,1349],{"class":552},[403,2934,1353],{"class":1352},[403,2936,1356],{"class":552},[403,2938,1359],{"class":990},[403,2940,1362],{"class":807},[403,2942,1365],{"class":1149},[403,2944,1368],{"class":807},[403,2946,2947],{"class":405,"line":420},[403,2948,423],{"emptyLinePlaceholder":11},[403,2950,2951,2953,2955],{"class":405,"line":426},[403,2952,1377],{"class":552},[403,2954,1380],{"class":922},[403,2956,1383],{"class":552},[403,2958,2959,2961,2963,2965],{"class":405,"line":437},[403,2960,671],{"class":670},[403,2962,675],{"class":674},[403,2964,1392],{"class":678},[403,2966,682],{"class":552},[403,2968,2969,2971,2973,2975,2977,2979,2981,2983,2985,2987,2989,2991,2993,2995],{"class":405,"line":442},[403,2970,1399],{"class":678},[403,2972,882],{"class":552},[403,2974,1404],{"class":885},[403,2976,378],{"class":674},[403,2978,890],{"class":696},[403,2980,134],{"class":552},[403,2982,1413],{"class":674},[403,2984,1416],{"class":885},[403,2986,378],{"class":674},[403,2988,1421],{"class":696},[403,2990,1424],{"class":552},[403,2992,378],{"class":674},[403,2994,1429],{"class":696},[403,2996,682],{"class":552},[403,2998,2999,3001,3003,3005,3007,3009,3011,3013,3015],{"class":405,"line":453},[403,3000,1436],{"class":749},[403,3002,216],{"class":552},[403,3004,1441],{"class":922},[403,3006,882],{"class":552},[403,3008,1404],{"class":749},[403,3010,134],{"class":552},[403,3012,1413],{"class":674},[403,3014,1416],{"class":749},[403,3016,934],{"class":552},[403,3018,3019],{"class":405,"line":458},[403,3020,590],{"class":552},[403,3022,3023],{"class":405,"line":469},[403,3024,423],{"emptyLinePlaceholder":11},[403,3026,3027,3029,3031,3033,3035,3037,3039,3041,3043,3045,3047,3049,3051,3053],{"class":405,"line":474},[403,3028,1466],{"class":678},[403,3030,882],{"class":552},[403,3032,1404],{"class":885},[403,3034,378],{"class":674},[403,3036,890],{"class":696},[403,3038,134],{"class":552},[403,3040,1413],{"class":674},[403,3042,1416],{"class":885},[403,3044,378],{"class":674},[403,3046,1421],{"class":696},[403,3048,1424],{"class":552},[403,3050,378],{"class":674},[403,3052,1429],{"class":696},[403,3054,682],{"class":552},[403,3056,3057,3059,3061,3063,3065,3067,3069,3071,3073],{"class":405,"line":761},[403,3058,1436],{"class":749},[403,3060,216],{"class":552},[403,3062,1501],{"class":922},[403,3064,882],{"class":552},[403,3066,1404],{"class":749},[403,3068,134],{"class":552},[403,3070,1413],{"class":674},[403,3072,1416],{"class":749},[403,3074,934],{"class":552},[403,3076,3077],{"class":405,"line":770},[403,3078,590],{"class":552},[403,3080,3081],{"class":405,"line":782},[403,3082,423],{"emptyLinePlaceholder":11},[403,3084,3085,3087,3089,3091,3093,3095,3097,3099,3101,3103,3105,3107,3109,3111],{"class":405,"line":787},[403,3086,1526],{"class":678},[403,3088,882],{"class":552},[403,3090,1404],{"class":885},[403,3092,378],{"class":674},[403,3094,890],{"class":696},[403,3096,134],{"class":552},[403,3098,1413],{"class":674},[403,3100,1416],{"class":885},[403,3102,378],{"class":674},[403,3104,1421],{"class":696},[403,3106,1424],{"class":552},[403,3108,378],{"class":674},[403,3110,1429],{"class":696},[403,3112,682],{"class":552},[403,3114,3115,3117,3119,3121,3123,3125,3127,3129,3131],{"class":405,"line":792},[403,3116,1436],{"class":749},[403,3118,216],{"class":552},[403,3120,1561],{"class":922},[403,3122,882],{"class":552},[403,3124,1404],{"class":749},[403,3126,134],{"class":552},[403,3128,1413],{"class":674},[403,3130,1416],{"class":749},[403,3132,934],{"class":552},[403,3134,3135],{"class":405,"line":802},[403,3136,590],{"class":552},[403,3138,3139],{"class":405,"line":835},[403,3140,423],{"emptyLinePlaceholder":11},[403,3142,3143,3145,3147,3149,3151,3153,3155,3157,3159,3161,3163,3165,3167,3169],{"class":405,"line":840},[403,3144,1586],{"class":678},[403,3146,882],{"class":552},[403,3148,1404],{"class":885},[403,3150,378],{"class":674},[403,3152,890],{"class":696},[403,3154,134],{"class":552},[403,3156,1413],{"class":674},[403,3158,1416],{"class":885},[403,3160,378],{"class":674},[403,3162,1421],{"class":696},[403,3164,1424],{"class":552},[403,3166,378],{"class":674},[403,3168,1429],{"class":696},[403,3170,682],{"class":552},[403,3172,3173],{"class":405,"line":845},[403,3174,1617],{"class":416},[403,3176,3177,3179,3181,3183,3185,3187,3189,3191,3193,3195,3197,3199,3201,3203,3205,3207,3209,3211,3213],{"class":405,"line":854},[403,3178,1622],{"class":749},[403,3180,216],{"class":552},[403,3182,1627],{"class":922},[403,3184,882],{"class":552},[403,3186,1632],{"class":807},[403,3188,1635],{"class":1149},[403,3190,1638],{"class":807},[403,3192,1404],{"class":749},[403,3194,819],{"class":807},[403,3196,1645],{"class":1149},[403,3198,1638],{"class":807},[403,3200,1650],{"class":482},[403,3202,216],{"class":807},[403,3204,1655],{"class":922},[403,3206,882],{"class":807},[403,3208,1416],{"class":749},[403,3210,1662],{"class":807},[403,3212,1665],{"class":807},[403,3214,934],{"class":552},[403,3216,3217],{"class":405,"line":866},[403,3218,423],{"emptyLinePlaceholder":11},[403,3220,3221,3223,3225,3227,3229,3231,3233,3235,3237],{"class":405,"line":871},[403,3222,1436],{"class":749},[403,3224,216],{"class":552},[403,3226,1680],{"class":922},[403,3228,882],{"class":552},[403,3230,1404],{"class":749},[403,3232,134],{"class":552},[403,3234,1413],{"class":674},[403,3236,1416],{"class":749},[403,3238,934],{"class":552},[403,3240,3241],{"class":405,"line":876},[403,3242,590],{"class":552},[403,3244,3245],{"class":405,"line":914},[403,3246,595],{"class":552},[59,3248,1703,3249,378],{},[63,3250,1708],{"href":1706,"rel":3251},[67],[394,3253,3254],{"className":1337,"code":1711,"language":1339,"meta":399,"style":399},[117,3255,3256,3268,3282,3286,3296,3300,3314,3318,3322,3326,3334,3358,3362],{"__ignoreMap":399},[403,3257,3258,3260,3262,3264,3266],{"class":405,"line":406},[403,3259,1718],{"class":674},[403,3261,1721],{"class":678},[403,3263,1724],{"class":670},[403,3265,1727],{"class":678},[403,3267,682],{"class":552},[403,3269,3270,3272,3274,3276,3278,3280],{"class":405,"line":420},[403,3271,879],{"class":674},[403,3273,882],{"class":552},[403,3275,1738],{"class":885},[403,3277,378],{"class":674},[403,3279,1392],{"class":1743},[403,3281,1746],{"class":552},[403,3283,3284],{"class":405,"line":426},[403,3285,423],{"emptyLinePlaceholder":11},[403,3287,3288,3290,3292,3294],{"class":405,"line":437},[403,3289,1755],{"class":678},[403,3291,882],{"class":552},[403,3293,1680],{"class":885},[403,3295,911],{"class":552},[403,3297,3298],{"class":405,"line":442},[403,3299,1617],{"class":416},[403,3301,3302,3304,3306,3308,3310,3312],{"class":405,"line":453},[403,3303,1622],{"class":749},[403,3305,216],{"class":552},[403,3307,1774],{"class":922},[403,3309,882],{"class":552},[403,3311,1680],{"class":749},[403,3313,934],{"class":552},[403,3315,3316],{"class":405,"line":458},[403,3317,590],{"class":552},[403,3319,3320],{"class":405,"line":469},[403,3321,595],{"class":552},[403,3323,3324],{"class":405,"line":474},[403,3325,423],{"emptyLinePlaceholder":11},[403,3327,3328,3330,3332],{"class":405,"line":761},[403,3329,1377],{"class":552},[403,3331,1799],{"class":922},[403,3333,1802],{"class":552},[403,3335,3336,3338,3340,3342,3344,3346,3348,3350,3352,3354,3356],{"class":405,"line":770},[403,3337,1807],{"class":1352},[403,3339,378],{"class":552},[403,3341,1812],{"class":552},[403,3343,1815],{"class":1352},[403,3345,378],{"class":552},[403,3347,1727],{"class":749},[403,3349,1822],{"class":552},[403,3351,1825],{"class":1352},[403,3353,378],{"class":552},[403,3355,1721],{"class":749},[403,3357,1832],{"class":552},[403,3359,3360],{"class":405,"line":782},[403,3361,1837],{"class":552},[403,3363,3364,3366,3368],{"class":405,"line":787},[403,3365,1718],{"class":674},[403,3367,1844],{"class":678},[403,3369,1847],{"class":552},[105,3371,100],{"id":1850},[59,3373,1853],{},[59,3375,1856,3376,1862],{},[63,3377,1861],{"href":1859,"rel":3378},[67],[59,3380,1865,3381,1871],{},[63,3382,1870],{"href":1868,"rel":3383},[67],[59,3385,1874,3386,537,3389,1885],{},[63,3387,1879],{"href":1877,"rel":3388},[67],[63,3390,1884],{"href":1882,"rel":3391},[67],[77,3393,3394,3396,3398],{},[80,3395,1890],{},[80,3397,1893],{},[80,3399,1896],{},[105,3401,103],{"id":1899},[77,3403,3404,3409,3417,3422,3427],{},[80,3405,1904,3406,1908],{},[63,3407,145],{"href":143,"rel":3408},[67],[80,3410,1904,3411,134,3414,1921],{},[63,3412,1915],{"href":1913,"rel":3413},[67],[63,3415,1920],{"href":1918,"rel":3416},[67],[80,3418,1904,3419,1929],{},[63,3420,1928],{"href":1926,"rel":3421},[67],[80,3423,1904,3424,1937],{},[63,3425,1936],{"href":1934,"rel":3426},[67],[80,3428,3429,1945],{},[63,3430,1944],{"href":1942,"rel":3431},[67],[105,3433,1949],{"id":1948},[59,3435,1952],{},[59,3437,1955],{},[59,3439,1958,3440,1964],{},[63,3441,1963],{"href":1961,"rel":3442},[67],[1966,3444,1968],{},{"title":399,"searchDepth":420,"depth":420,"links":3446},[3447,3452,3453,3454,3455,3456,3457,3458,3459],{"id":107,"depth":420,"text":108,"children":3448},[3449,3450,3451],{"id":169,"depth":426,"text":170},{"id":225,"depth":426,"text":226},{"id":330,"depth":426,"text":331},{"id":498,"depth":420,"text":499},{"id":610,"depth":420,"text":611},{"id":634,"depth":420,"text":91},{"id":648,"depth":420,"text":649},{"id":1313,"depth":420,"text":97},{"id":1850,"depth":420,"text":100},{"id":1899,"depth":420,"text":103},{"id":1948,"depth":420,"text":1949},{"subTitle":1994,"categories":3461,"date":1989,"lastUpdated":1992,"readingTime":3462},[1985,1986,1987],{"text":1997,"minutes":1998,"time":1999,"words":2000},{"title":54,"description":1990},{"loc":1995,"images":3465,"lastmod":1989},[3466],{"loc":385},"MiDt_Xm4-OzMwAGQPB9W8TbuntvGgmuktmz7Pj6bZlE",[3469,3473],{"title":3470,"path":3471,"stem":3472,"children":-1},"The Mistakes I Made In My First Software Project","\u002Fblog\u002Fthe-mistakes-i-made-in-my-first-software-project","blog\u002Fthe-mistakes-i-made-in-my-first-software-project\u002Findex",{"title":3474,"path":3475,"stem":3476,"children":-1},"5 Reasons Why I Quit My Job And Started Freelancing","\u002Fblog\u002F5-reasons-why-i-quit-my-job-and-started-freelancing","blog\u002F5-reasons-why-i-quit-my-job-and-started-freelancing\u002Findex",[3478,3483,3488,3493],{"cover":3479,"date":3480,"slug":3481,"title":3482,"to":3481},"blog\u002Fhow-i-built-a-custom-stepper-wizard-using-angular-material-cdk\u002Fcover_zy8fq3.png","2018-12-25","\u002Fblog\u002Fhow-i-built-a-custom-stepper-wizard-using-angular-material-cdk","How I Built A Custom Stepper\u002FWizard Component Using The Angular Material CDK",{"cover":3484,"date":3485,"slug":3486,"title":3487,"to":3486},"blog\u002Fhow-i-write-marble-tests-for-rxjs-observables-in-angular\u002Fcover_jdzs5q.jpg","2018-11-12","\u002Fblog\u002Fhow-i-write-marble-tests-for-rxjs-observables-in-angular","How I Write Marble Tests For RxJS Observables In Angular",{"cover":3489,"date":3490,"slug":3491,"title":3492,"to":3491},"blog\u002Fhow-to-build-an-angular-app-once-and-deploy-it-to-multiple-environments\u002Fbuild-once-process_oremkq.jpg","2019-12-09","\u002Fblog\u002Fhow-to-build-an-angular-app-once-and-deploy-it-to-multiple-environments","How To Build An Angular App Once And Deploy It To Multiple Environments",{"cover":3494,"date":3495,"slug":3496,"title":3497,"to":3496},"blog\u002Fhow-to-easily-write-and-debug-rxjs-marble-tests\u002Fcover_gdej1t.jpg","2019-09-09","\u002Fblog\u002Fhow-to-easily-write-and-debug-rxjs-marble-tests","How To Easily Write And Debug RxJS Marble Tests"]