keechma 2019-07-06

is :main component mandatory in application?

what if I have Login component? which key does it refers to?

Like :login?

you make the names up =)

Problem is that it's not being rendered. Even when pipeline controller's :params function returns true.

you need to have a main component

(I am using fn instead of :params)

which will in turn show the login component

your app has at least 2 states, 1 show the login, 2 show the actual page

both 1 and 2 are enclosed in the main component

which will dispatch based on the route

back to my counters test app, here is that main component

see how it selects what to show based on the route

Oh great, so every other component in app flows from :main.

you would have :login and :main-page instead of my two counter pages

that's how i do it anyways

@carkh Thanks. Let me try it.

👍 1

i don't want to publish that app, it looks more like a battleground than an app....so many tests were made in there =)

😃 1

@carkh I'm going through similar phase.

best way to learn !

❤️ 1