ngus icon indicating copy to clipboard operation
ngus copied to clipboard

Please consider Angular 2's Renderer API

Open PatrickJS opened this issue 9 years ago • 9 comments

There's a better way

react-native-renderer server_dom_renderer angular2/src/render

the api you're looking for is something like

@FamousComponent({
      tree: '<node id="foo" class="bar"></node>',
      behaviors: {
         '#foo': {
            'position':[250,50],
            'size': [100,100]
         },
         '.bar': {
            'style': {
              'background-color': 'red'
            }
         }
      }
})
export class FaMesh {

}

PatrickJS avatar Aug 17 '15 20:08 PatrickJS

@gdi2290 Thanks for pointing in this direction, I like it! I'm very busy ATM at work and trying to organize a community fork of Famous. If you want to submit a pull request with this working I would review and probably integrate it. I'm curious to see if this approach can make it possible to insert Angular templates and maintain property and event binding in a rendered Famous DOMElement.

steveblue avatar Aug 21 '15 15:08 steveblue

@steveblue can I ask why you're doing a community fork of Famous? I haven't been up to date on Famous news

PatrickJS avatar Aug 21 '15 16:08 PatrickJS

Take a look in the famous.org Community Slack #general room August 18th. Many people have felt the company, probably due to poor leadership.

steveblue avatar Aug 21 '15 17:08 steveblue

ANgular operates on the HTML present in the DOM right (like ANgular 1.0, where it'd start working off of what exists in DOM)?

If so, I'd rather write famous components that way, in the HTML that goes directly to the DOM, not as Framework style components.

trusktr avatar Sep 01 '15 21:09 trusktr

@gdi2290 8 of the core team left Famous. The two main guys that started Framework left. At least 3 of Engine's WebGL team left. Our main community guy Myles (@thealphanerd) left. This all happened at once.

trusktr avatar Sep 01 '15 21:09 trusktr

yeah I heard, Angular can work without the DOM and does so in order for it to run in a web worker/server/native

PatrickJS avatar Sep 01 '15 22:09 PatrickJS

@trusktr how do you know who left Famous? Do you know why they left?

speigg avatar Sep 05 '15 14:09 speigg

@speigg I'm not entirely sure. I just know they did. It's been news floating around in Slack, plus a couple friends in Famous had said things were going to shift so they wanted to leave before that happened.

trusktr avatar Sep 08 '15 23:09 trusktr

ya I hear there is only 6 people left

PatrickJS avatar Sep 08 '15 23:09 PatrickJS