Repository navigation
Angular 01: project structure - #32
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
First lesson in my Angular guide: thirteen stacked PRs, one topic each. Each one adds a lesson page that lives inside the site and makes a real change to the app the lesson can point at. Together they turn Thoughts into an interactive reader.
What shipped
Interactive lessons in Thoughts. A thought can now carry a lazily loaded lesson page under its prose.
thoughts-content/lessons/lessons.tsmaps slugs to loaders.thought-detail.tsloads the page throughresource(), so SSR waits for it.CodeBlockcomponent renders the samples as data, so{{ }}and@ifinside a sample never get compiled.Lesson 01: project structure (
/thoughts/angular-01-project-structure)Architecture fitness spec.
src/app/architecture.spec.tsfails if anything outsideapps/statically imports fromapps/, or if an@NgModuleappears. Lazyimport()is allowed, since that is the code-splitting seam.Settings state moved to
shared/settings/. The spec's first run foundapp.ts,dock/dock.tsandmenu-bar/menu-bar.tsimportingSettingsService/AppearanceServicefrom theapps/settings/feature. The services moved; the System Preferences screen stayed in the feature folder.Annotations.
main.ts,app.config.tsandapp.config.server.tscarry[ng-01]comments.grep -rn "ng-01" srcfinds every example.Version and changelog. 1.4.0, with a matching changelog entry.
Commits
Verification
npm run lint,tsc --noEmitfor app and spec configs, andng test: 42 files, 315 tests, all exit 0.browser/thoughts/angular-01-project-structure/index.htmlcontains the whole lesson, demo and interview section included.TO-DOs for this PR