Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/angular/components
/ isActive
Method
isActive
src/cdk/testing/tests/testbed.spec.ts:341–343 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
339
readonly asyncButton = this.locatorFor(
'.async-button'
);
340
341
async
isActive(): Promise<boolean> {
342
return
(
await
this.host()).hasClass(
'active'
);
343
}
344
345
async
click(): Promise<void> {
346
return
(
await
this.host()).click();
Callers
1
testbed.spec.ts
File · 0.45
Calls
1
hasClass
Method · 0.65
Tested by
no test coverage detected