Repository navigation
Angular 02: components - #33
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.
Second lesson in my Angular guide. It builds on the structure lesson, and its real change is the refactor every later lesson page depends on.
What shipped
Lesson 02: components (
/thoughts/angular-02-components)input(),output(),model(), content projection, lifecycle withDestroyRef, dynamic components, view encapsulation.[(count)], and whose dismiss button emits into an event log.Lesson building blocks
Lesson(layout),LessonDemo(demo frame),Callout(tip, pitfall, expert note),InterviewQuestions(native<details>).LessonusesViewEncapsulation.Nonewith.lesson-prefixed selectors, because emulated styles can't reach projected content.Copy button on code samples.
CodeBlockcopies to the clipboard, announces "Copied" through a live region, and emitscopied. A denied clipboard shows a visible failure message rather than doing nothing.Version and changelog. 1.4.1, with a matching changelog entry.
Commits
Verification
ng test: 44 files, 326 tests, exit 0. Lint and bothtsc --noEmitconfigs are clean..lesson-verdict[role="status"], because code blocks also have a status region./thoughts/angular-02-componentsis prerendered with the demo in the HTML.@angular/corecode formodel()/output()hoisted into the shared chunk.TO-DOs for this PR