Comments (3)
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.
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.
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)
- Typo and slightly confusing note HOT 2
- Adding id to debug message
- [Discussion] Verbosity in Attributes. HOT 1
- Virtual DOM Support HOT 2
- Teardown should dissociate the component from its node
- Cannot read property 'logFilter' of undefined in debug HOT 1
- Suggestion: Internal cache for this.select() vs. repeatedly find HOT 1
- Clarify default attribute overriding with mixins HOT 1
- Documentation HOT 10
- Find a way to break the DOM library out HOT 1
- Test standalone version on master branch
- The link to the documentation takes you to README.md HOT 2
- Use Element.prototype.closest when supported HOT 7
- dom.select shouldn't query the DOM when the selector is 'body' HOT 1
- Call for maintainers HOT 12
- Can't listen/trigger events on the `window` object HOT 1
- when release the v2.xx version ? HOT 1
- Why the software history was not kept? HOT 2
- Write protection should not vary between debug and prod mode HOT 7
- Why not under active development? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flight.