Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何继承角度组件的控制器?在“旧”角度我可以使用$controller,或者$injector我应该用孤立的范围做什么?
$controller
$injector
您可以使用 $parent、$$childHead、$$childTail。
尽管独立作用域不继承原型,但它们确实具有父/子引用