instrukcja if else w szablonach AngularJS
Chcę zrobić warunek w szablonie AngularJS. Pobieram listę wideo z interfejsu API YouTube. Niektóre filmy są w proporcji 16: 9, a niektóre w stosunku 4: 3.
Chcę stworzyć taki warunek:
if video.yt$aspectRatio equals widescreen then
element's attr height="270px"
else
element's attr height="360px"
Iteruję filmy za pomocąng-repeat
. Nie mam pojęcia, co powinienem zrobić dla tego warunku: