July 2019
Intermediate to advanced
416 pages
10h 6m
English
In a similar way to React giving us the special .jsx/.tsx extensions to allow us to put our code and web page together, Vue provides us with single-file components that are created as .vue files. These files allow us to mix our code and web templates together to build up our page. Let's open up our Home.vue page and analyze it before we go on to create our first TensorFlow component.
We can see that our .vue component is broken up into two separate parts. There's a template section that defines the layout of the HTML that will be displayed on the screen, and there's a separate script section where we include our code. Since we are using TypeScript, the language for our script section is ts.
The script ...
Read now
Unlock full access