-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
49 additions
and
25 deletions.
There are no files selected for viewing
37 changes: 27 additions & 10 deletions
37
...ponent-with-complex-selectors/__snapshots__/multiple-selector.component.stories.storyshot
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,52 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`Storyshots Basics / Component / With Complex Selectors Input Selectors 1`] = ` | ||
<storybook-wrapper> | ||
<foo> | ||
foo | ||
</foo> | ||
</storybook-wrapper> | ||
`; | ||
|
||
exports[`Storyshots Basics / Component / With Complex Selectors attribute selectors 1`] = ` | ||
<storybook-wrapper> | ||
<storybook-attribute-selector | ||
foo="" | ||
foo="bar" | ||
> | ||
<p> | ||
<h3> | ||
Attribute selector | ||
</p> | ||
</h3> | ||
Selector: "storybook-attribute-selector[foo=bar]" | ||
<br /> | ||
Generated template: "<storybook-attribute-selector foo="bar"></storybook-attribute-selector>" | ||
</storybook-attribute-selector> | ||
</storybook-wrapper> | ||
`; | ||
|
||
exports[`Storyshots Basics / Component / With Complex Selectors attribute value selectors 1`] = ` | ||
exports[`Storyshots Basics / Component / With Complex Selectors class selectors 1`] = ` | ||
<storybook-wrapper> | ||
<storybook-attribute-value-selector | ||
foo="bar" | ||
class="foo" | ||
> | ||
<p> | ||
Attribute with value | ||
</p> | ||
<h3> | ||
Class selector | ||
</h3> | ||
Selector: "storybook-class-selector.foo" | ||
<br /> | ||
Generated template: "<storybook-class-selector class="bar"></storybook-class-selector>" | ||
</storybook-attribute-value-selector> | ||
</storybook-wrapper> | ||
`; | ||
|
||
exports[`Storyshots Basics / Component / With Complex Selectors multiple selectors 1`] = ` | ||
<storybook-wrapper> | ||
<storybook-multiple-selector> | ||
<p> | ||
<h3> | ||
Multiple selector | ||
</p> | ||
</h3> | ||
Selector: "storybook-multiple-selector, storybook-multiple-selector2" | ||
<br /> | ||
Generated template: "<storybook-multiple-selector></storybook-multiple-selector>" | ||
</storybook-multiple-selector> | ||
</storybook-wrapper> | ||
`; |
7 changes: 5 additions & 2 deletions
7
...r-cli/src/stories/basics/component-with-complex-selectors/attribute-selector.component.ts
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,10 @@ | ||
import { Component } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'storybook-attribute-selector[foo]', | ||
template: '<p>Attribute selector</p>', | ||
selector: 'storybook-attribute-selector[foo=bar]', | ||
template: `<h3>Attribute selector</h3> | ||
Selector: "storybook-attribute-selector[foo=bar]" <br /> | ||
Generated template: "<storybook-attribute-selector | ||
foo="bar"></storybook-attribute-selector>" `, | ||
}) | ||
export class AttributeSelectorComponent {} |
7 changes: 0 additions & 7 deletions
7
.../stories/basics/component-with-complex-selectors/attributewithvalue-selector.component.ts
This file was deleted.
Oops, something went wrong.
9 changes: 9 additions & 0 deletions
9
...gular-cli/src/stories/basics/component-with-complex-selectors/class-selector.component.ts
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { Component } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'storybook-attribute-value-selector.foo', | ||
template: `<h3>Class selector</h3> | ||
Selector: "storybook-class-selector.foo" <br /> | ||
Generated template: "<storybook-class-selector class="bar"></storybook-class-selector>" `, | ||
}) | ||
export class ClassSelectorComponent {} |
This file contains 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
This file contains 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