[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"me":3,"catalog:en:frontend\u002Fangular-directives-pipes":4,"config":234},null,{"field_key":5,"field_name":6,"seniority":7,"topic_key":8,"topic_name":9,"spec_key":7,"spec_name":7,"locale":10,"cell_total":11,"field_total":12,"seniorities":13,"topics":17,"specs":133,"samples":150},"frontend","Frontend","","angular-directives-pipes","Angular Directives Pipes","en",75,2925,[14,15,16],"junior","mid","senior",[18,21,24,27,30,31,34,37,40,43,46,49,52,55,58,61,64,67,70,73,76,79,82,85,88,91,94,97,100,103,106,109,112,115,118,121,124,127,130],{"key":19,"name":20,"count":11},"accessibility","Accessibility",{"key":22,"name":23,"count":11},"angular-change-detection","Angular Change Detection",{"key":25,"name":26,"count":11},"angular-components-lifecycle","Angular Components Lifecycle",{"key":28,"name":29,"count":11},"angular-dependency-injection","Angular Dependency Injection",{"key":8,"name":9,"count":11},{"key":32,"name":33,"count":11},"angular-router-forms","Angular Router Forms",{"key":35,"name":36,"count":11},"angular-testing-performance","Angular Testing Performance",{"key":38,"name":39,"count":11},"css-layout","Css Layout",{"key":41,"name":42,"count":11},"dom-browser-apis","Dom Browser Apis",{"key":44,"name":45,"count":11},"javascript-async-concurrency","Javascript Async Concurrency",{"key":47,"name":48,"count":11},"javascript-language","Javascript Language",{"key":50,"name":51,"count":11},"javascript-memory-performance","Javascript Memory Performance",{"key":53,"name":54,"count":11},"javascript-modules-bundling","Javascript Modules Bundling",{"key":56,"name":57,"count":11},"javascript-prototypes-oop","Javascript Prototypes Oop",{"key":59,"name":60,"count":11},"javascript-runtime-apis","Javascript Runtime Apis",{"key":62,"name":63,"count":11},"javascript-testing-tooling","Javascript Testing Tooling",{"key":65,"name":66,"count":11},"performance","Performance",{"key":68,"name":69,"count":11},"react-components-jsx","React Components Jsx",{"key":71,"name":72,"count":11},"react-context-state","React Context State",{"key":74,"name":75,"count":11},"react-effects-lifecycle","React Effects Lifecycle",{"key":77,"name":78,"count":11},"react-forms-suspense","React Forms Suspense",{"key":80,"name":81,"count":11},"react-hooks-state","React Hooks State",{"key":83,"name":84,"count":11},"react-rendering-performance","React Rendering Performance",{"key":86,"name":87,"count":11},"rendering-reactivity","Rendering Reactivity",{"key":89,"name":90,"count":11},"state-management","State Management",{"key":92,"name":93,"count":11},"testing","Testing",{"key":95,"name":96,"count":11},"typescript-advanced-types","Typescript Advanced Types",{"key":98,"name":99,"count":11},"typescript-generics","Typescript Generics",{"key":101,"name":102,"count":11},"typescript-modules-declarations","Typescript Modules Declarations",{"key":104,"name":105,"count":11},"typescript-narrowing-control-flow","Typescript Narrowing Control Flow",{"key":107,"name":108,"count":11},"typescript-tooling-config","Typescript Tooling Config",{"key":110,"name":111,"count":11},"typescript-type-fundamentals","Typescript Type Fundamentals",{"key":113,"name":114,"count":11},"vue-components-props","Vue Components Props",{"key":116,"name":117,"count":11},"vue-composition-api","Vue Composition Api",{"key":119,"name":120,"count":11},"vue-directives-templates","Vue Directives Templates",{"key":122,"name":123,"count":11},"vue-performance-testing","Vue Performance Testing",{"key":125,"name":126,"count":11},"vue-reactivity-system","Vue Reactivity System",{"key":128,"name":129,"count":11},"vue-router-state-management","Vue Router State Management",{"key":131,"name":132,"count":11},"web-security","Web Security",[134,138,141,144,147],{"key":135,"name":136,"count":137},"angular","Angular",450,{"key":139,"name":140,"count":137},"javascript","JavaScript",{"key":142,"name":143,"count":137},"react","React",{"key":145,"name":146,"count":137},"typescript","TypeScript",{"key":148,"name":149,"count":137},"vue","Vue",[151,169,182,195,208,221],{"id":152,"topic":9,"difficulty":153,"body":154,"options":155,"correct_key":160,"explanation":168},"019f79bd-9044-77f2-8235-783c90ce1357",1,"What does the `*ngIf` structural directive do when applied to an element?",[156,159,162,165],{"key":157,"text":158},"a","It hides the element with CSS `display: none` but keeps it in the DOM",{"key":160,"text":161},"b","It adds or removes the element (and its subtree) from the DOM based on a boolean expression",{"key":163,"text":164},"c","It clones the element once for every item in an array",{"key":166,"text":167},"d","It only disables user interaction on the element without changing the DOM","`*ngIf` is a structural directive: when its expression is falsy, Angular removes the element and everything inside it from the DOM entirely (destroying any component instances there); when truthy, it (re)creates them. This is different from just hiding with CSS.",{"id":170,"topic":9,"difficulty":153,"body":171,"options":172,"correct_key":163,"explanation":181},"019f79bd-9045-794c-b0f6-68539296f8ee","What is `*ngFor` used for in an Angular template?",[173,175,177,179],{"key":157,"text":174},"To conditionally show one element out of several options",{"key":160,"text":176},"To bind a single element's CSS classes dynamically",{"key":163,"text":178},"To repeat a template element once for each item in a collection",{"key":166,"text":180},"To lazily load a component only when it scrolls into view","`*ngFor` is a structural directive that iterates over a collection (typically an array) and renders one copy of the host element\u002Ftemplate for each item, e.g. `\u003Cli *ngFor=\"let item of items\">{{ item }}\u003C\u002Fli>`.",{"id":183,"topic":9,"difficulty":153,"body":184,"options":185,"correct_key":157,"explanation":194},"019f79bd-9046-7695-8105-772481c76cc1","What is the general purpose of an Angular pipe like `{{ price | currency }}`?",[186,188,190,192],{"key":157,"text":187},"To transform a value into a different displayed format inside the template, without changing the underlying data",{"key":160,"text":189},"To make an HTTP request to fetch the value from a backend",{"key":163,"text":191},"To validate the value and throw an error if it fails a rule",{"key":166,"text":193},"To permanently mutate the component property it's applied to","A pipe takes an input value and returns a transformed value for display — e.g. `currency` formats a raw number as `$1,234.00` — without altering the original property on the component.",{"id":196,"topic":9,"difficulty":153,"body":197,"options":198,"correct_key":166,"explanation":207},"019f79bd-9046-7c98-b283-347a7851ff76","What does the `async` pipe do when used as `{{ data$ | async }}` where `data$` is an `Observable`?",[199,201,203,205],{"key":157,"text":200},"It immediately and synchronously converts the entire observable stream into a plain JavaScript array of all values it will ever emit, blocking template rendering until the observable completes",{"key":160,"text":202},"It deliberately cancels and re-establishes the observable's underlying subscription from scratch on every single change detection cycle that runs while the pipe is present",{"key":163,"text":204},"It only ever works correctly when given a `Promise` as input, and throws a runtime type error if an `Observable` is passed to it instead",{"key":166,"text":206},"It subscribes and returns the latest value, unsubscribing automatically on destroy","The `async` pipe subscribes to an `Observable` or `Promise` for you, displays the latest emitted value, marks the view for check on each emission, and automatically unsubscribes when the host view is destroyed — removing the need for manual subscribe\u002Funsubscribe boilerplate.",{"id":209,"topic":9,"difficulty":153,"body":210,"options":211,"correct_key":163,"explanation":220},"019f79bd-9047-7443-b2f2-58a57e2046cf","What is `@HostBinding()` used for inside an Angular attribute directive?",[212,214,216,218],{"key":157,"text":213},"To listen for a DOM event on the host element",{"key":160,"text":215},"To inject a service into the directive's constructor",{"key":163,"text":217},"To bind a directive class property to a property (e.g. a CSS class, style, or attribute) of the host element",{"key":166,"text":219},"To declare the directive's CSS selector","`@HostBinding('class.active')` (for example) ties a directive property to a property of the host element it's applied to — when the directive property changes, Angular updates the corresponding host DOM property\u002Fattribute\u002Fclass automatically.",{"id":222,"topic":9,"difficulty":153,"body":223,"options":224,"correct_key":160,"explanation":233},"019f79bd-9047-79ac-b6c8-e0da626ed0d3","In Angular, what is the key difference between a structural directive and an attribute directive?",[225,227,229,231],{"key":157,"text":226},"There is absolutely no real difference between the two — both terms are simply two different names Angular's documentation uses interchangeably to describe the exact same single underlying directive mechanism",{"key":160,"text":228},"A structural directive adds\u002Fremoves elements (`*ngIf`); an attribute directive changes an existing element's look\u002Fbehavior (`[ngClass]`)",{"key":163,"text":230},"Attribute directives are restricted so that they can only ever be applied on top of other Angular components, and can never be attached directly to a plain, native HTML element such as a `\u003Cdiv>` or `\u003Cspan>`",{"key":166,"text":232},"Structural directives require the class to be decorated with `@Component` instead of the usual `@Directive` decorator that all other kinds of directives use","Structural directives (prefixed with `*`, like `*ngIf`\u002F`*ngFor`) manipulate the DOM tree's structure by adding or removing elements. Attribute directives (like `[ngClass]`, `[ngStyle]`, or a custom `[appHighlight]`) modify an existing element's appearance\u002Fbehavior without changing what's present in the DOM tree.",{"fields":235,"seniorities":410,"interview_shapes":411,"locales":416,"oauth":418,"question_count":421,"coach_enabled":422,"jd_match_enabled":422},[236,261,270,287,311,324,343,362,384,391,397,404],{"key":237,"name_tr":238,"name_en":238,"sort":153,"specializations":239},"backend","Backend",[240,243,246,249,252,255,258],{"key":241,"name":242,"field":237},"general","Genel",{"key":244,"name":245,"field":237},"go","Go",{"key":247,"name":248,"field":237},"python","Python",{"key":250,"name":251,"field":237},"java","Java",{"key":253,"name":254,"field":237},"csharp","C#\u002F.NET",{"key":256,"name":257,"field":237},"nodejs","Node.js",{"key":259,"name":260,"field":237},"php","PHP",{"key":5,"name_tr":6,"name_en":6,"sort":262,"specializations":263},2,[264,265,266,267,268,269],{"key":241,"name":242,"field":5},{"key":139,"name":140,"field":5},{"key":145,"name":146,"field":5},{"key":142,"name":143,"field":5},{"key":148,"name":149,"field":5},{"key":135,"name":136,"field":5},{"key":271,"name_tr":272,"name_en":272,"sort":273,"specializations":274},"fullstack","Fullstack",3,[275,276,277,278,279,280,281,282,283,284,285,286],{"key":241,"name":242,"field":271},{"key":244,"name":245,"field":237},{"key":247,"name":248,"field":237},{"key":250,"name":251,"field":237},{"key":253,"name":254,"field":237},{"key":256,"name":257,"field":237},{"key":259,"name":260,"field":237},{"key":139,"name":140,"field":5},{"key":145,"name":146,"field":5},{"key":142,"name":143,"field":5},{"key":148,"name":149,"field":5},{"key":135,"name":136,"field":5},{"key":288,"name_tr":289,"name_en":289,"sort":290,"specializations":291},"devops-cloud","DevOps \u002F Cloud",4,[292,293,296,299,302,305,308],{"key":241,"name":242,"field":288},{"key":294,"name":295,"field":288},"aws","AWS",{"key":297,"name":298,"field":288},"gcp","GCP",{"key":300,"name":301,"field":288},"azure","Azure",{"key":303,"name":304,"field":288},"kubernetes","Kubernetes",{"key":306,"name":307,"field":288},"terraform","Terraform",{"key":309,"name":310,"field":288},"linux","Linux",{"key":312,"name_tr":313,"name_en":313,"sort":314,"specializations":315},"ai-engineer","AI Engineer",5,[316,317,318,321],{"key":241,"name":242,"field":312},{"key":247,"name":248,"field":312},{"key":319,"name":320,"field":312},"llm-rag","LLM\u002FRAG",{"key":322,"name":323,"field":312},"mlops","MLOps",{"key":325,"name_tr":326,"name_en":327,"sort":328,"specializations":329},"database","Veritabanı","Database",6,[330,331,334,337,340],{"key":241,"name":242,"field":325},{"key":332,"name":333,"field":325},"postgresql","PostgreSQL",{"key":335,"name":336,"field":325},"mysql","MySQL",{"key":338,"name":339,"field":325},"mongodb","MongoDB",{"key":341,"name":342,"field":325},"redis","Redis",{"key":344,"name_tr":345,"name_en":346,"sort":347,"specializations":348},"mobile","Mobil","Mobile",7,[349,350,353,356,359],{"key":241,"name":242,"field":344},{"key":351,"name":352,"field":344},"ios-swift","iOS (Swift)",{"key":354,"name":355,"field":344},"android-kotlin","Android (Kotlin)",{"key":357,"name":358,"field":344},"flutter","Flutter",{"key":360,"name":361,"field":344},"react-native","React Native",{"key":363,"name_tr":364,"name_en":365,"sort":366,"specializations":367},"security","Güvenlik","Security",8,[368,369,372,375,378,381],{"key":241,"name":242,"field":363},{"key":370,"name":371,"field":363},"appsec","AppSec",{"key":373,"name":374,"field":363},"offensive-pentest","Offensive \u002F Pentest",{"key":376,"name":377,"field":363},"cloud-security","Cloud Security",{"key":379,"name":380,"field":363},"devsecops","DevSecOps",{"key":382,"name":383,"field":363},"blue-team-incident","Blue Team \u002F Incident",{"key":385,"name_tr":386,"name_en":387,"sort":388,"specializations":389},"qa-test-automation","QA \u002F Test Otomasyonu","QA \u002F Test Automation",9,[390],{"key":241,"name":242,"field":385},{"key":392,"name_tr":393,"name_en":393,"sort":394,"specializations":395},"data-engineer","Data Engineer",10,[396],{"key":241,"name":242,"field":392},{"key":398,"name_tr":399,"name_en":400,"sort":401,"specializations":402},"game-dev","Oyun Geliştirme","Game Development",11,[403],{"key":241,"name":242,"field":398},{"key":405,"name_tr":406,"name_en":406,"sort":407,"specializations":408},"ml-engineer","ML Engineer",12,[409],{"key":241,"name":242,"field":405},[14,15,16],{"junior":412,"mid":414,"senior":415},{"questions":413,"median_sec":3},20,{"questions":413,"median_sec":3},{"questions":413,"median_sec":3},[417,10],"tr",[419,420],"google","github",21750,true]