AngularJs Tutorial: $eval vs. $parse vs. $interpolate

preview_player
Показать описание
-What is $eval, $parse, $interpolate
-using $eval with locals and functions
-$parse with scope and locals
-using strings to $interpolate with scope and locals, filters etc.
-using "assign" with $parse
Рекомендации по теме
Комментарии
Автор

The best tutorial for angular js on the internet.. Keep it up Sir... I really appreciate the way you have presented each and every topic.. with clarity of theory and explanation with demo examples.. Great Work.!

nickchauhan
Автор

Just love you. I find myself very fortunate that I can connect tutor like you through YT..

AbhishekKumar-znuu
Автор

This is all good. Please explain how these features are used in practical situations.

udaybhaskarnamburu
Автор

great....very helpful explanation sir....hope you will continue the series on other concepts and also on other technologis updates eg. angular 2

UnicornCodinghub
Автор

This looked easy comparing to some previous videos. Thanks. I just have heard that eval is evil. Is it not the case with $eval ? You did not mention anything about that

darius
Автор

Just got a quick question: During the video, you said $parse().assign() // trigger digest loop.
But in your demo, it updates view MAYBE because due to Ng-click instead of $parse().assign().

chengjinfei
Автор

Thanks for the great tutorials. I have a question at 30:40 you explain that the digest process is kicked in when you do you $parse.assign. But is it called on the $scope you insert into the assign function? And if so, does that mean we must give scope in assign and cannot give a simple object like you did a bit earlier with the non assign $parse?

jasperpotze
Автор

Nice work... I wish I have access to your exercise files. Do you have them anywhere?

tosinkajopelaye-ola
Автор

Hi Sir,
Thank you for the great explanation, I understand what are eval, parse and interpolate and how are they used ? But I have a doubt why and when are they used in real time? I mean we can achieve the same thing by using alert($scope.a*$scope.b) then why to use them ?

PriyaDas-ysrg
Автор

Hello Sir,
Great job! Could you explain $q and upload it on your channel?

rakeshrockie
Автор

Don't use $scope. Alias your controllers. I understand you're doing it for teaching purposes. But I want everyone else to be aware of "$scope soup" issue.

LizardanNet