我未曾预料到的Angular独立组件陷阱
Hello Devs, You know that moment when everything looks fine — no errors, no warnings — but the UI just... doesn’t do what it’s supposed to? That’s how this story begins. But let me add some...
开发者重返Angular后发现独立组件不再自动继承核心指令,如*ngFor失效。调试后意识到需手动导入CommonModule。这提醒开发者,即使经验丰富,也要关注细节,以避免“静默失败”。
