Skip to content

Commit 39ec8e4

Browse files
committed
es6 components
1 parent 53ff9c1 commit 39ec8e4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

README.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -1181,7 +1181,7 @@ Refer to **`tag-06-using-vuex`** for what we have done so far.
11811181

11821182
Bonus #1: free Angular components from Angular
11831183
----
1184-
A further step in the migration could be rewriting existing Angular components as ES6 modules. You can move them into your webpack build, you can write them in a more concise style, more Vue than Angular, you are maybe learning ES6+ and want to have fun... whatever. Or maybe you are not interested in any restyling (you already write Angular component that way or you prefer to directly migrate the component to Vue). Either is fine.
1184+
A further step in the migration could be rewriting existing Angular components as ES6 modules. You can move them into your webpack build, you can write them in a more concise style, you are maybe learning ES6+ and want to have fun... whatever. Or maybe you are not interested in any restyling (you already write Angular component that way or you prefer to directly migrate the component to Vue). Either is fine.
11851185
Just in case, you can move for example `angularApp/components/search.js` into `vueApp/src/ngVueBridgeCode/components/Search/index.js`, and rewrite it as:
11861186

11871187
**ngVueBridgeCode/components/Search/index.js**
@@ -1234,7 +1234,9 @@ import Search from '@/ngVueBridgeCode/components/Search/index.js';
12341234
ngVueComponentsModule.component('search', Search);
12351235
```
12361236

1237-
And delete all files and code related to the original component. Our Angular app is reducing to its bare bones. See `tag-07-es6-components`.
1237+
And delete all files and code related to the original component. Our Angular app is reducing to its bare bones.
1238+
See `tag-07-es6-components`.
1239+
12381240

12391241

12401242

0 commit comments

Comments
 (0)