Sharing Top Content from the Angular-sphere.

[SOLVED] Can I combine Twitter Flight with AngularJS?- Angular.js Recipes

  • If I understand both frameworks correctly I can create “new” elements with AngularJS which could be use by and contain Flight components.
  • To put it another way: I could AngularJS like I normally would, but the directives are “decorated” Flight components.
  • I understand you want to do the following: Decorate AngularJS directives with Flight components and Flight views.
  • You could probably create these Flight components within a directive and gain an advantage from the data-binding Angular offers.
  • I think AngularJS directives solve the same problem as Flight components, but offer a lot more.

I understand you want to do the following: Decorate AngularJS directives with Flight components and Flight views.

You could probably create these Flight components within a directive and gain an advantage from the data-binding Angular offers. However, judging from the following:

“Flight enforces strict separation of concerns.
When you create a component you don’t get a handle to it. ”

It seems like Flight does not promote that you speak to these components via data-binding.

Furthermore, directives can be seen as components themselves already. And as for creating views, in AngularJS the DOM is already the view, what reason specifically would you have to use Flight views on top?

Also since the AngularJS is not subscribed to the events that Flight uses it has no way of knowing when the DOM has been modified (I am not sure of this please someone more knowledgeable correct me if I am wrong).

As for making sense. It does not look like Flight is meant to solve the same problems as Angular. I think AngularJS directives solve the same problem as Flight components, but offer a lot more.


@angular_recipe: Can I combine Twitter Flight with AngularJS? #Angular #AngularJS

A couple of hours ago Twitter released Flight, a component-based framework for JavaScript. Its components are plain DOM elements and communicate through plain DOM events, which its really nice.

I just wonder… can I combine this with AngularJS? If I understand both frameworks correctly I can create “new” elements with AngularJS which could be use by and contain Flight components. And these components can be populated with data by AngularJS. To put it another way: I could AngularJS like I normally would, but the directives are “decorated” Flight components. (Use Flight to create views and use AngularJS for everything else.)

Would that make sense? If not… I don’t get the purpose of Flight 🙁

I understand you want to do the following: Decorate AngularJS directives with Flight components and Flight views.

You could probably create these Flight components within a directive and gain an advantage from the data-binding Angular offers. However, judging from the following:

“Flight enforces strict separation of concerns. When you create a component you don’t get a handle to it. ”

It seems like Flight does not promote that you speak to these components via data-binding.

Furthermore, directives can be seen as components themselves already. And as for creating views, in AngularJS the DOM is already the view, what reason specifically would you have to use Flight views on top?

Also since the AngularJS is not subscribed to the events that Flight uses it has no way of knowing when the DOM has been modified (I am not sure of this please someone more knowledgeable correct me if I am wrong).

As for making sense. It does not look like Flight is meant to solve the same problems as Angular. I think AngularJS directives solve the same problem as Flight components, but offer a lot more.

There is currently no discussion for this recipe.

Angular.js Recipes are structured in a Cookbook format featuring recipes that contain problem statements and solutions. A detailed explanation follows each problem statement of the recipe. This is usually contained within the solution; however, an optional discussion section can often contain other useful information helping to demonstrate how the solution works.

Angular.js is a JavaScript-based open-source front-end web application framework mainly maintained by Google and by a community of individuals and corporations to address many of the challenges encountered in developing single-page applications. The JavaScript components complement Apache Cordova, the framework used for developing cross-platform mobile apps. It aims to simplify both the development and the testing of such applications by providing a framework for client-side model–view–controller (MVC) and model–view–viewmodel (MVVM) architectures, along with components commonly used in rich Internet applications.

Lost? Begin by working through Angular’s Getting Started Guide to get yourself up-and-running.

[SOLVED] Can I combine Twitter Flight with AngularJS?- Angular.js Recipes

Comments are closed, but trackbacks and pingbacks are open.