Skip to content

Releases: daniloster/ng-reactify

Cut off some fat

22 Sep 19:59
Compare
Choose a tag to compare
  • Added a cleaner way to register components and route;
  • Updated documentation;

Pending tasks:
Distribution version still brings angularjs together, just for those that will consume straight in the browser. Simple fix will be done soon. For those who are consuming using webpack to compile and bundle it, no problem whatsoever.

Added option to consume as UMD

22 Sep 19:55
Compare
Choose a tag to compare

Added option to consume library as UMD.

Added documentation ro Readme.md

13 Sep 08:25
Compare
Choose a tag to compare
  • Added documentation;
  • Added small fixes;
  • Improved the process to test and publish.

Removing tag obligation to deploy to npm

11 Sep 18:59
Compare
Choose a tag to compare
v1.0.3

Editing config for travis

Added management of route using react-route and by passing angular-router

11 Sep 17:32
Compare
Choose a tag to compare

Usage of react components with react-route requires from the component to have defined the baseUrl for its links based on dynamic route hierarchy.

        /**
         * Whenever you are creating a link, it is likely to use a 
         * route management to provide access to other components.
         * Thus, it is important capture the parent context path in
         * order to define relative paths.
         * 
         * Even if you are not using a route management, this code
         * manages well the capture of parent route.
         * 
         * Expected result for non-managed-routes: ''
         * Expected result for managed-routes: <the-correct-parent-url>
         */
        const index = (this.props.routes || []).indexOf(this.props.route || {});
        const basePath = this.props.routes
            .slice(0, index)
            .filter(route => !!route.path)
            .map(route => route.path)
            .join('/');

This version comes with:

  • ngReactify module;
  • ngReactifyComponent directive; (NOTE: just working for components without route)
  • ngReactifyPageConfig;
  • ReactifyComponentRegister service;