famous-flex
famous-flex copied to clipboard
Angular Directive Will Be awsome
I'm very new to famo.us but I'm good in angularjs , can u please consider ,or guid me to build angular directives for your awsome controlles.
I haven't gotten around to do work with famous-angular, so unfortunately I'm lacking the experience at this stage.
OK I think I've find a way to do it , https://famo.us/integrations/angular/faq/ under the q Can I use existing (vanilla) Famo.us components in F/A? thanx Hein you did a great job :+1:
I will wrap all of you component's in angular directives ,and it will be available to the angular/famous
That will be so awesome :))
Can you please give me instruction about how to build all of your code into single file ,to remove require.js and src folder ,this will help the angular people to just use the directives without having to depend on requirejs, this will be great, my first thought was to use require.js and fa-render-node https://famo.us/integrations/angular/docs/unstable/api/directive/faRenderNode/index.html but I think this will be better,
Have you managed to get it working?
Not yet but I will relocate your code in angular module from the beginning , and use famous-global.js , to remove require.js dependency
I need to follow your dependency tree and replace it with angular DI , for example the LayoutUtility will be declared as angular factory angular.module('famous-flex').factory('LayoutUtility',['$famous',function($famous){ // import dependencies var Utility = $famous('famous/utilities/Utility'); //the rest of your code return LayoutUtility; }]);
Right I see. Would a single js-file do the trick like I did for famous-map? https://github.com/IjzerenHein/famous-map/tree/master/dist
@AhmadEl-Banna
@mcbain pushed some changes to include a global famous-flex file. I'm not how it all works, have a talk to him.
Have a look at this: https://github.com/IjzerenHein/famous-flex/pull/29#issuecomment-67771577
cool that's exactly what I need
I will try it out
@AhmadEl-Banna any progress on this?
+1
+1
+1
+1
@thaiat Did you manage to get famous-flex working with famous-angular? Cheers
Hello,
I made an initial stab at integrating some of the famous-flex functionality with angular. you can find a repo of this material at
https://github.com/stevenmpostma/famous-flex-angular
You may find some of it of value.
regards.