Skip to content

Commit

Permalink
Updating template and snapshot version
Browse files Browse the repository at this point in the history
Signed-off-by: Carlos Vega <clmvega@gmail.com>
  • Loading branch information
alterx committed Oct 14, 2017
1 parent 64b7d3d commit a554bc9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 6 additions & 4 deletions lib/cli/generators/ANGULAR/template/stories/index.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
import { storiesOf } from '@storybook/angular';
import { addonNotes } from '@storybook/addon-notes';
import { withNotes } from '@storybook/addon-notes';
import { action } from '@storybook/addon-actions'
import { linkTo } from '@storybook/addon-links'

import { Welcome, Button } from '@storybook/angular/demo';

declare let module;

storiesOf('Welcome', module)
.add('to Storybook', () => ({
component: Welcome,
Expand All @@ -18,13 +20,13 @@ storiesOf('Button', module)
text: 'Hello Button'
}
}))
.add('with some emoji', addonNotes({ notes: 'My notes on a button with emojis' })(() => ({
.add('with some emoji', withNotes({ notes: 'My notes on a button with emojis' })(() => ({
component: Button,
props: {
text: '😀 😎 👍 💯'
}
})))
.add('with some emoji and action', addonNotes({ notes: 'My notes on a button with emojis' })(() => ({
.add('with some emoji and action', withNotes({ notes: 'My notes on a button with emojis' })(() => ({
component: Button,
props: {
text: '😀 😎 👍 💯',
Expand All @@ -39,4 +41,4 @@ storiesOf('Another Button', module)
text: 'Go to Welcome Story',
onClick: linkTo('Welcome')
}
}))
}))
2 changes: 1 addition & 1 deletion lib/cli/test/snapshots/angular-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,6 @@
"ts-node": "1.2.1",
"tslint": "^4.3.0",
"typescript": "~2.4.0",
"@storybook/angular": "^3.3.0-alpha.0"
"@storybook/angular": "3.3.0-alpha.2"
}
}

0 comments on commit a554bc9

Please sign in to comment.