AngularJS Tutorial #19 - Transclude & Replace

preview_player
Показать описание
Hey gang, in this AngularJS tutorial, I'll be introducing you to filters and how we can use them to change the way our data is displayed to a user. Filters can be used in conjunction with ng-repeat, or directly on the expression itself. We use Angular filters to do things like ordering a list of items alphabetically, or by type, or to display numbers as a currency.

----- COURSE LINKS:

---------------------------------------------------------------------------------------------
You can find more front-end development tutorials on CSS, HTML, JavaScript, jQuery, WordPress & more on the channel homepage...

========== JavaScript for Beginners Playlist ==========

============ CSS for Beginners Playlist =============

============== The Net Ninja =====================

================== Social Links ==================

Рекомендации по теме
Комментарии
Автор

Hii, Excellent videos yar. One thing I liked most is, if you combine all these videos one application is formed . Thats very nice . There is connectivity between the videos . Good Job. Thank You very Much .

harishmurram
Автор

Excelente, ahora me quedo mas claro el uso de las directivas y el transclude.

PabloZabala
Автор

please make more videos on this, this are best <3

zaheetbatada
Автор

What's the advantage of replace over, say, calling the directive with an attribute (restrict: "A")

BennyPowers
Автор

Seems that the replace function is now deprecated. Couldn't get it to work on the newer AngularJS versions.

christianvanlierop
Автор

Why the video description of filters is pasted here??

charan
Автор

Can we make a directive using replace so that it renders the element as html comment. I need that because currently replace requires at least one parent tag in template. What if I dont have or dont want to have any parent. Then in that case a logical container will help. This is similar behavior as ng-conatiner works for angualr 2 and above

rajjaiswalsaumya
Автор

I cant get mine to work, its saying:
Illegal use of ngTransclude directive in the template! No parent directive that requires a transclusion found. Element: {0}
im using .php does it matter?

ChongDelro
Автор

Can we have the tag having the ng-transclude directive be replaced by the actual html present in the custom-directive, instead of putting the html inside that tag having ng-transclude.

if <div ng-include></div> is there in the template and if we call
<my-directive>
<p>hello world</p>
</my-derictive>

Tis actually becomes
<div ng-include>
<p>hello world</p>
</div>

instead of simply
<p>hello world</p>

Is it possible.

NagaChaitanyaKonada