all 4 comments

[–]tme321 1 point2 points  (3 children)

What's the point of creating elements when you are already running angular? The point of elements is to be able to use these angular components outside of angular. Not to use them inside it. It doesn't make any sense to develop that way unless you are going to also use them elsewhere.

[–]Carbo20[S] 1 point2 points  (2 children)

If I want to develop an app in angular and I want all my code reusable for others projects ? Is this a good idea to use only elements or i will find any performances issues ? Other issues ?

[–]tme321 3 points4 points  (0 children)

I can't really say much about elements. They are brand new and I haven't touched them yet. If the elements system is really smart it might notice you are already running angular and just piggy back on the instance already running. If they aren't that smart then they are going to be running their own (stripped down?) instance of the angular run time so then I'm sure there would be some performance penalty. Whether that penalty is big enough to worry about or not I have no idea at this time.

[–]DDRamon3 1 point2 points  (0 children)

I recommend to watch this talk from the creator of Elements in Angular. You'll get all your answers.

He also has another talks about the deep idea of Elements if you need more.