Tweak twig with awesome Vue.js by Tejomay Saha Tweak twig with - - PowerPoint PPT Presentation

tweak twig with awesome vue js
SMART_READER_LITE
LIVE PREVIEW

Tweak twig with awesome Vue.js by Tejomay Saha Tweak twig with - - PowerPoint PPT Presentation

Tweak twig with awesome Vue.js by Tejomay Saha Tweak twig with awesome Vue.js by Tejomay Saha Hello! I am Tejomay Saha @tejomayonline I am here as I love learning and expressing new techs stuffs to ease coding. Working at Srijan


slide-1
SLIDE 1

Tweak twig with awesome Vue.js

by Tejomay Saha

slide-2
SLIDE 2

Tweak twig with awesome Vue.js

by Tejomay Saha

slide-3
SLIDE 3

Hello!

I am Tejomay Saha

@tejomayonline

I am here as I love learning and expressing new techs stuffs to ease coding.

slide-4
SLIDE 4

Working at Srijan Technologies pvt. Ltd . As a Full Stack Developer

slide-5
SLIDE 5

1. What is vue?

slide-6
SLIDE 6

Vue.js (pronounced /vju /, like view) is a library for building interactive web interfaces

slide-7
SLIDE 7

Why using vue.js?

○ Reactive data binding ○ Composable view component ○ Mix and match small library ○ Progressive framework! (router, resource/ajax stuff, state management and many more) ○ Simple API (easy to learn) ○ Lightweight ○ Rapid grow community

slide-8
SLIDE 8

Vue based on MVVM

What is MVVM and reactive?

slide-9
SLIDE 9

Vue flow of MVVM

slide-10
SLIDE 10
slide-11
SLIDE 11

Start with vue

Use <script src="https://unpkg.com/vue"></script>

Cdn for includung vue.js into you dom easily <div id="app"> (makes you dom bind to vue with script ) ……………….. </div> <script> new Vue({ el: '#app'}) </script>

.
slide-12
SLIDE 12

Reactive vue

(jsfiddle link) 1.tree dynamic view(https://goo.gl/Qrt44N) 2.markdown(https://goo.gl/yi57Hk) 3.latest github commits(https://goo.gl/mKyx4H) 4.grid component(https://goo.gl/vMgBT1) 5.modal component(https://goo.gl/4QXYEU) 6.todos(https://goo.gl/7AMCYW)

slide-13
SLIDE 13

Vue v/s React v/s Angular

★ Performance ★ Learning Curve ★ Purpose ★ Architecture ★ Scaling up/down ★ Ease factor

slide-14
SLIDE 14

Every component is responsible for managing a piece of DOM

Nav Content Item Sidebar

slide-15
SLIDE 15

The entire UI can be abstracted into a tree of components

slide-16
SLIDE 16

Custom reusable nested vue components

<fab-button> </fab-button> <tabs> <inner-tab></inner-tab> <inner-tab></inner-tab> <inner-tab></inner-tab> </tabs>

slide-17
SLIDE 17

large scale management with vue

slide-18
SLIDE 18

Vue code flow

  • Imported as a ES2015

module (thus easily testable)

  • Collocation of

Template, Logic & Style

  • Just use what you

already know: HTML, CSS & JavaScript

  • Embedded

pre-processor support: seamlessly use Babel, SASS or even Pug in the same file

  • Component-scoped

CSS with a single attribute

slide-19
SLIDE 19

Vue tools & extras

  • Vue-cli for command line first

development.

  • Official chrome dev tools for vue

support.

  • Awesome vue.js community.
  • Built in Laravel support from Laravel

5.3.

  • Tiny learning curve.
  • Based on between react virtual dom

and angular data binding.

  • Awesome for building ui

components,animations.

  • 2 way data binding looks like realtime.
  • etc.
slide-20
SLIDE 20

Vue with Drupal8/7

★ We can easily blend vue.js with twig templating with the cdn or else ★ Using npm dependencies. ★ ★ We can use it in .tpl files directly. ★ ★ We can use in custom module development ★ ★ Creating Reactive theme with vue.

slide-21
SLIDE 21

Sources

  • Google
  • Evan you’s slides.
  • Muhammad Rizki Rijal
  • Toshiro Shimizu
  • etc.
slide-22
SLIDE 22

Thanks!

Any questions?

You can find me at @tejomayonline

slide-23
SLIDE 23

Hello!

I am Tejomay Saha

@tejomayonline

I am here as I love learning and expressing new techs stuffs to ease coding.

slide-24
SLIDE 24

Working at Srijan Technologies pvt. Ltd . As a Full Stack Developer

slide-25
SLIDE 25

1. What is vue?

slide-26
SLIDE 26

Vue.js (pronounced /vju /, like view) is a library for building interactive web interfaces

slide-27
SLIDE 27

Why using vue.js?

○ Reactive data binding ○ Composable view component ○ Mix and match small library ○ Progressive framework! (router, resource/ajax stuff, state management and many more) ○ Simple API (easy to learn) ○ Lightweight ○ Rapid grow community

slide-28
SLIDE 28

Vue based on MVVM

What is MVVM and reactive?

slide-29
SLIDE 29

Vue flow of MVVM

slide-30
SLIDE 30
slide-31
SLIDE 31

Start with vue

Use <script src="https://unpkg.com/vue"></script>

Cdn for includung vue.js into you dom easily <div id="app"> (makes you dom bind to vue with script ) ……………….. </div> <script> new Vue({ el: '#app'}) </script>

.
slide-32
SLIDE 32

Reactive vue

(jsfiddle link) 1.tree dynamic view(https://goo.gl/Qrt44N) 2.markdown(https://goo.gl/yi57Hk) 3.latest github commits(https://goo.gl/mKyx4H) 4.grid component(https://goo.gl/vMgBT1) 5.modal component(https://goo.gl/4QXYEU) 6.todos(https://goo.gl/7AMCYW)

slide-33
SLIDE 33

Vue v/s React v/s Angular

★ Performance ★ Learning Curve ★ Purpose ★ Architecture ★ Scaling up/down ★ Ease factor

slide-34
SLIDE 34

Every component is responsible for managing a piece of DOM

Nav Content Item Sidebar

slide-35
SLIDE 35

The entire UI can be abstracted into a tree of components

slide-36
SLIDE 36

Custom reusable nested vue components

<fab-button> </fab-button> <tabs> <inner-tab></inner-tab> <inner-tab></inner-tab> <inner-tab></inner-tab> </tabs>

slide-37
SLIDE 37

large scale management with vue

slide-38
SLIDE 38

Vue code flow

  • Imported as a ES2015

module (thus easily testable)

  • Collocation of

Template, Logic & Style

  • Just use what you

already know: HTML, CSS & JavaScript

  • Embedded

pre-processor support: seamlessly use Babel, SASS or even Pug in the same file

  • Component-scoped

CSS with a single attribute

slide-39
SLIDE 39

Vue tools & extras

  • Vue-cli for command line first

development.

  • Official chrome dev tools for vue

support.

  • Awesome vue.js community.
  • Built in Laravel support from Laravel

5.3.

  • Tiny learning curve.
  • Based on between react virtual dom

and angular data binding.

  • Awesome for building ui

components,animations.

  • 2 way data binding looks like realtime.
  • etc.
slide-40
SLIDE 40

Vue with Drupal8/7

★ We can easily blend vue.js with twig templating with the cdn or else ★ Using npm dependencies. ★ ★ We can use it in .tpl files directly. ★ ★ We can use in custom module development ★ ★ Creating Reactive theme with vue.

slide-41
SLIDE 41

Sources

  • Google
  • Evan you’s slides.
  • Muhammad Rizki Rijal
  • Toshiro Shimizu
  • etc.
slide-42
SLIDE 42

Thanks!

Any questions?

You can find me at @tejomayonline