Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/angular/components
/ isSubmenuExpanded
Function
isSubmenuExpanded
src/aria/menu/menu.spec.ts:250–253 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
248
}
249
250
function
isSubmenuExpanded(): boolean {
251
const
berries = getItem(
'Berries'
);
252
return
berries?.getAttribute(
'aria-expanded'
) ===
'true'
;
253
}
254
255
beforeEach(
async
() =>
await
setupMenu());
256
Callers
1
menu.spec.ts
File · 0.85
Calls
2
getItem
Function · 0.70
getAttribute
Method · 0.65
Tested by
no test coverage detected