One product. Four ways to think.
This repository builds the same interactive CV in Angular, React, Svelte, and Vue. That makes it a useful learning laboratory: the data, design, and behavior stay fixed while the framework syntax changes.
Beginner shortcut: follow one feature across all four apps. Start with loading the JSON, then selecting a filter, then rendering one work item. Do not try to memorize every symbol at once.
First, see what is actually shared
The framework is only the view layer here. Each implementation follows the same pipeline.
?roles=LeadOne data contract
/data/cvs.json is schema v1 data, validated before builds. TypeScript interfaces describe its shape.
One filtering algorithm
shared/cv-service.ts supplies fetching, filter options, and matching logic.
One visual language
design/styles.css supplies colors, cards, layout, filters, and responsive rules.
Framework personalities at a glance
These are learning-oriented descriptions of the way each framework is used in this repository.
| Question | Angular | React | Svelte | Vue |
|---|---|---|---|---|
| Core mental model | A component class supplies values and methods to a separate HTML template. | A component is a function that returns UI; state changes call it again. | A component is an HTML-like file whose reactive variables update the DOM. | A single-file component combines setup logic and a declarative template. |
| State in this app | Class properties such as activeFilters. | useState(...) hooks. | Svelte 5 runes: $state(...). | Composition API refs: ref(...). |
| Derived data | A TypeScript getter: get filteredWork(). | A local value calculated during render. | $derived(...). | computed(...). |
| Lifecycle | ngOnInit / ngOnDestroy. | useEffect with cleanup. | onMount with cleanup. | onMounted; effects use watch. |
| Template style | HTML directives and bindings: *ngFor, [href], (click). | JSX: JavaScript expressions inside HTML-like markup. | HTML plus blocks: {#each}, {#if}. | HTML directives: v-for, v-if, :href, @click. |
| Typical beginner impression | Most structure and conventions; more to learn up front. | Very JavaScript-centered and explicit. | Least ceremony in this small app. | A middle ground: structured templates with light setup code. |
Routing and sharing the URL
Important: none of these CV pages uses a framework router. Navigation is done with normal links, while filter state is encoded in the query string so it survives a framework switch.
| Concern | Angular | React | Svelte | Vue |
|---|---|---|---|---|
| Read filters | The same pattern restores domain tags, timeline, preset, search, and sort state in every app. | |||
| Write filters | Method updateUrl() runs after a filter change and calls history.replaceState. | A useEffect watches activeFilters and calls history.replaceState. | A $effect reads activeFilters and calls history.replaceState. | A deep watch(activeFilters, ...) calls history.replaceState. |
| Switch apps | [href]="'/react/' + queryString" | href={`/vue/${queryString}`} | href={`/angular/${queryString}`} | :href="`/svelte/${queryString}`" |
| Browser back/forward | Registers popstate in ngOnInit. | Registers popstate in a one-time useEffect. | Registers popstate in onMount. | Registers popstate in onMounted. |
| What is shared? | The URL schema: preset stores the thematic focus; roles and domain tags are comma-separated; time stores a timeline selection; q stores full-text search; and sort=asc overrides descending order. A React URL can therefore become a Vue URL without losing the selection. | |||
Fetching the CV data
All four apps instantiate the same CVService. The framework difference is mainly when the promise is started and how results enter reactive state.
| Framework | Code used in this project | Read it as… |
|---|---|---|
| Angular | | When the component initializes, fetch; then assign class properties. |
| React | | After the first render, fetch once; state setters request another render. |
| Svelte | | When mounted in the browser, await the data; assignments are reactive. |
| Vue | | When mounted, fetch; write through .value because these are refs. |
Under the hood: CVService.fetchCVs() itself uses the browser’s standard fetch(), checks response.ok, and returns response.json(). There is no framework-specific HTTP library here.
Filters: state, events, and applied data
The filter function is shared. The panel has five rows: text search, thematic focus, timeline, Role and Domain dropdowns, and active filters. Domains are stored as stable tags slugs and formatted for display by the shared service. The preset and timeline scope the list; search and category selections refine it; end-date sorting orders it. Counts use the complete unfiltered CV.
| Step | Angular | React | Svelte | Vue |
|---|---|---|---|---|
| Declare state | activeFilters: FilterCriteria = {...} | const [activeFilters, setActiveFilters] = useState(...) | let activeFilters = $state(...) | const activeFilters = ref(...) |
| Bind select event | (change)="toggleFilter('roles', $event)" | onChange={e => toggleFilter('roles', e.target.value)} | onchange={e => handleSelectChange('roles', e)} | @change="toggleFilter('roles', $event)" |
| Update selection | Assign a new array to this.activeFilters[category]. | Call setActiveFilters(prev => ...); never mutate React state directly. | Change the category, then reassign activeFilters = {...activeFilters}. | Change activeFilters.value[category]; the ref tracks it. |
| Apply filters | | | | |
| Render result | *ngFor="let work of filteredWork" | filteredWork.map(work => ...) | {#each filteredWork as work} | v-for="work in filteredWork" |
Matching rule: the thematic preset and timeline establish the initial project set. Every search word must occur somewhere in a project. Selected Role or Domain values are OR-ed within their category, but the two categories are AND-ed together. Results sort by end date, then by the later start date when end dates match. Counts beside presets and options always describe the full, unfiltered CV.
Template for an employment record and its project engagements
Schema v1 nests project engagements inside an employment record. Each example loops through the company record, then its engagements, using the stable engagement.id for the inner identity.
| Framework | Equivalent template | Syntax clues |
|---|---|---|
| Angular | | *ngFor repeats an element. Double braces interpolate text; trackBy keeps engagement identity stable. |
| React | | JavaScript map creates elements. Braces switch from JSX to JavaScript; key identifies an engagement. |
| Svelte | | {#each} opens a block; (engagement.id) is Svelte’s keyed identity. |
| Vue | | v-for repeats; : binds the stable engagement key. |
Design notes
The pages are visually consistent by design, making framework comparison easier.
| Design concern | How this repository handles it | What a beginner should notice |
|---|---|---|
| Theme | Light/dark choice is shared through local storage; without a saved choice, the page follows the time-of-day default. Shared CSS supplies the glass cards, typography, and accents. | Frameworks do not determine appearance. The same CSS can make four implementations look nearly identical. |
| Desktop layout | A two-column CSS Grid: 300px contact sidebar plus flexible main content. | The layout comes from CSS, not Angular/React/Svelte/Vue. |
| Mobile layout | Below 768px, the grid becomes one column; controls widen, cards use tighter spacing, and profile details begin collapsed. | Responsive behavior is also shared CSS. Test the same breakpoints in every app. |
| Profile details | One combined Languages, Skills & Education card sits below Contact. It begins open on wide screens, collapsed on mobile, and is always expanded for print. | One accessible control can manage several related sections when they belong together. |
| Reusable classes | .glass-card, .filters-bar, .work-entry, .tag, and .top-nav. | A stable class contract prevents small template differences from creating visual drift. |
| Accessibility | Semantic nav, main, section, article; labels on icon-only buttons; real links for navigation. | Framework syntax changes, but the browser receives ordinary accessible HTML. |
| Current trade-off | Some repeated icon markup and inline styles live inside each framework template. | A next refactor could extract work cards and icons into components—but keeping them visible now makes study easier. |
Build specifics
The source apps compile into four static folders served beside the landing page.
| Framework | Source | Toolchain and output | Build |
|---|---|---|---|
| Angular 21 | angular-app/ | Angular CLI application builder; baseHref: /angular/; output moved into angular/. | cd angular-app |
| React 19 | react-app/ | TypeScript project build, then Vite; base: /react/; output react/. | cd react-app |
| Svelte 5 | svelte-app/ | Vite with the Svelte plugin; base: /svelte/; output svelte/. | cd svelte-app |
| Vue 3 | vue-app/ | vue-tsc type-check/build, then Vite; base: /vue/; output vue/. | cd vue-app |
| All four | design/ + shared/ | Every prebuild copies the canonical stylesheet and CV service into the app before compilation. | Change shared files at the root, then rebuild every app. |
Why base paths matter: generated asset URLs must point inside /angular/, /react/, /svelte/, or /vue/. The JSON deliberately remains absolute at /data/cvs.json because it is shared from the site root.
A practical learning route
Use the four live versions as a laboratory, not as four unrelated tutorials.
| Pass | Exercise | What you learn |
|---|---|---|
| 1. Observe | Open all four versions with the same filter query and compare the rendered result. | The product behavior is the invariant; syntax is the variable. |
| 2. Trace | In each app, find activeFilters, toggleFilter, filteredWork, and the work loop. | The universal state → event → derivation → view pattern. |
| 3. Change | Add one small field such as “project type” to the JSON, shared interfaces, and all four templates. | Data modeling and template binding. |
| 4. Componentize | Extract one work experience into a child component in each framework. | Inputs/props and component composition. |
| 5. Extend | Change one of the two category filters in the shared service and every UI. | Reactive state, URL synchronization, and shared business logic. |