Code Monkey home page Code Monkey logo

Comments (3)

angus-c avatar angus-c commented on July 22, 2024

Yes, by all means. Components are not defined in terms of DOM nodes, rather you attach an instance of a Component to one or more DOM nodes after it is defined. There is nothing to stop DOM node of one component instance being nested inside the DOM node of another.

Are you having an issue with it?

from flight.

danwrong avatar danwrong commented on July 22, 2024

It depends what you mean? Are you thinking of having an attachTo for a component called from inside another component or having components attached to DOM nodes that are decendants of a DOM node that has another component attached?

If its the former, use with extreme caution because it can create strong coupling where you mind not want it. If the latter, then yes, that's very much the pattern Flight is designed to encourage.

from flight.

 avatar commented on July 22, 2024

DOM nodes instantiation is important, but not in relation to the the point
i am making about DRY and reusability.

There needs to be an easy and thought out way for coders to be able to take
the component and override aspects of the CSS and the HTML template for it.
This will allow many many users to customise it for their needs.

It will also allow this to be used for the many mobile platforms that are
html5 based that are coming out.

This is a huge opportunity to have a great component system that will be
able to easily adapt to the many needs.
Otherwise it could turn into the Tragedy of the Commons.

The exact same patterns happens with CMS system. You have a component, and
you want to override some of it as a module.
then you can use that module in many different places.
But if the component architecture is good, you can also inject overrides
from the page level down into a module because you will need to change it
in some way for that particular page.

On 5 February 2013 19:27, Dan Webb [email protected] wrote:

It depends what you mean? Are you thinking of having an attachTo for a
component called from inside another component or having components
attached to DOM nodes that are decendants of a DOM node that has another
component attached?

If its the former, use with extreme caution because it can create strong
coupling where you mind not want it. If the latter, then yes, that's very
much the pattern Flight is designed to encourage.


Reply to this email directly or view it on GitHubhttps://github.com//issues/26#issuecomment-13143607.

Contact details:
+49 1573 693 8595 (germany)
+46 73 364 67 96 (sweden)
skype: gedw99

from flight.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.