Vue JS 2 Tutorial #35 - Filters

Vue JS 2 Tutorial #35 - Filters

Net Ninja

7 лет назад

71,179 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@ruperthurley2381
@ruperthurley2381 - 18.05.2017 21:29

Have been tinkering with some transitions myself, which are great, but would love to see what you do with a tutorial on them... weaving in velocity.js perhaps, as that looks quite involved!

Ответить
@AsutoshSahoo1
@AsutoshSahoo1 - 19.05.2017 11:42

hey, actually i'm new to front-end. Saw your angular 1.x tutorials earlier this week and played a little with it, but it seems that it has become obsolete now, everywhere there is angular 2 there..
i love your tutorials, the simplicity with which you explain each and every concept, so i thought it would be better to take some advice from you. Before getting on with angular 2, shall i learn angular 2, or try react or vue... or something else entirely..? what shall i do, i'm totall confused now.

Ответить
@dhmsimons
@dhmsimons - 20.05.2017 11:20

Is there any way to make those filters conditional?

Ответить
@johnnydriesen7575
@johnnydriesen7575 - 02.06.2017 10:13

By far the best VueJS tutorial on the web. Seriously ! Thanks Ninja !

Now, about custom filters...
You're slicing your string to to 100 chars...
But is there a possibility to give this number (in this case... 100) as some kind of parameter with the 'snippet' 'filter ?

Ответить
@rakahanan5851
@rakahanan5851 - 04.07.2017 06:10

You seriously give all of this tutorials for free?? You are the best man!!

Ответить
@ChiragChaudhari97
@ChiragChaudhari97 - 31.10.2017 20:08

You are doing a really great job by making these videos.
Your videos inspire me to learn new stuff and experiment with new features.
At first when I started learning vue js I got confused with lots of concepts.
But after watching your awesome tutorials now I am much more confident in working with vue as well now I am liking the way vue handles stuff.

Really great work man...
Keep it doing...keep Inspiring. Thank You.

Ответить
@samuelpimenta1942
@samuelpimenta1942 - 22.05.2018 03:46

If you are wonder you can add multiple filters like this: {{ blog.body | snippet | to-uppercase }}

Ответить
@boypro6606
@boypro6606 - 03.08.2018 15:25

Can everyone here just stop making fake comments? Net Ninja, we know that who comments here are mostly your friends who keep saying that your tutorials are awesome in every video you make.

Ответить
@danielgabe8501
@danielgabe8501 - 05.08.2018 18:51

Thamkyou so much

Ответить
@kerendn
@kerendn - 24.08.2018 08:18

Wouldn't it be simpler and more standard to invoke a method?
1. Define a method "xx" in methods {...} that does what the filter should do
2. In the template, write: {{xx(blogPost.title)}}
Seems like this "|" is just syntactic sugar. Would you agree?

Ответить
@izamglima
@izamglima - 14.09.2018 21:44

dot dot dot <3

Ответить
@rroossyyiidd
@rroossyyiidd - 09.01.2019 10:15

thanks

Ответить
@luizelias6155
@luizelias6155 - 19.03.2019 20:17

I think filters are great to generic changes on data that are used on multiple components but in a scenario where u just need change something in a single component the computed property works better

Ответить
@adam192021
@adam192021 - 24.03.2019 10:42

The BEST as always!

Ответить
@wosleyalarico1878
@wosleyalarico1878 - 11.10.2019 17:14

Just a quick question: how would it be if I wanted to place my filters somewhere else in a different file?
Allow me to thank you for this amazing tutorial.
I had learnt quite a bit of Vue from a paid a course with a great instructor by the way. But let me tell you that it took me more than a week to learn/relearn the things that I am learning in one day!!!
No exaggeration, but I feel like am watching a Netflix series!

Ответить
@Andrei-ds8qv
@Andrei-ds8qv - 13.10.2019 23:06

One of the best tutorial series ever :D

Ответить
@levizjaperdije8499
@levizjaperdije8499 - 27.11.2019 13:40

can i put filter to the v-for?

Ответить
@isaacfranciscurvelomarques1417
@isaacfranciscurvelomarques1417 - 01.12.2019 16:18

Man please tell me what font is that you use on that editor?

Ответить
@thenahidul
@thenahidul - 10.12.2019 14:39

Great. You can also use JS inside the curly braces.


{{post.title.toUpperCase()}}
{{post.body.slice(0, 30)+'...'}}

Ответить
@ur_aditya
@ur_aditya - 05.06.2020 13:03

Hi where did you make the paragraphs and header file?

Ответить
@dgloria
@dgloria - 05.06.2020 22:16

This doesn't work at all.

Ответить
@descongestionante_nasal
@descongestionante_nasal - 16.08.2022 20:47

thanks for the tutorial!! :D

Ответить