Component vs Template

When I ajax load a component or template they both pretty Look the same to me. Both are wrapped between tags and suppprt to render variables {{}} etc. so what are the main differences and when do I use one over the other?

Component has much more features, e.g. methods, scoped javascript, VDOM, etc.

Thanks for the link. I have read it. Still don’t see when to use templates or components. Is it just a matter of performance?

I think,u should use component,When

  1. you want to create methods flexibly for next page
  2. you want to do something for dealing with context before rendering
1 Like

Ok, thanks guys! I’ll focus on components for now. Currently I am developing a small app for myself and learn F7 and SWIFT at the same time :slight_smile: I’d like to see what fits me better