jQWidgets Forums

This topic contains 15 replies, has 7 voices, and was last updated by  Peter Stoev 8 years, 7 months ago.

Viewing 15 posts - 1 through 15 (of 16 total)
  • Author
    Angular 2 Posts
  • Angular 2 #70946

    Gary
    Participant

    Would like to see adoption of Angular 2 later this year.
    Gary

    Angular 2 #70951

    Peter Stoev
    Keymaster

    Ok, Gary. We’ll think about this.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    Angular 2 #79528

    gouletf
    Participant

    Yep, I would like to see that happen too! 🙂

    Frederic

    Angular 2 #79530

    Peter Stoev
    Keymaster

    Hi Frederic,

    We’re following very closely the Angular2 development. Our team is actively working towards evaluating the best possible way to support Angular2 in our UI widgets framework. We’ll announce more details shortly and we can assure you that once Angular2 is released, you will see first-class jQWidgets integration with Angular2.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    Angular 2 #84506

    mbassman
    Participant

    Any news on angular 2?

    We are starting new projects with angular 2, and it seems a shame to need new components.

    thanks,
    mike

    Angular 2 #84507

    Peter Stoev
    Keymaster

    Hi Mike,

    As soon as our Angular 2 components are ready, we will publish them on our website. We are still working on this and there is still a lot of work. In the recent releases we will first release Typescript definitions and after that we will have Angular 2 integration.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    Angular 2 #86858

    Peter Stoev
    Keymaster

    With our newest release of jQWidgets, Angular 2 Components and Typescript Definitions are now available for all widgets.

    Angular 2 Demos – http://www.jqwidgets.com/jquery-widgets-demo/demos/angularjs2-demos/index.htm
    Typescript Demos – http://www.jqwidgets.com/jquery-widgets-demo/demos/typescript/index.htm

    Soon are expected React JS Components.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    Angular 2 #86897

    c-myers1
    Participant

    Hello Peter,

    I’ve waited ages for the ng2 widgets but no joy: what you released seems to be for RC1 but we are on RC5 today and there are huge changes. Or have I misunderstood what it says at http://www.jqwidgets.com/jquery-widgets-documentation/documentation/angular2/angular2.htm?search= especially at:

    var ngVer = ‘@2.0.0-rc.1’; // lock in the angular package version; do not let it float to current!

    Angular 2 #86899

    Peter Stoev
    Keymaster

    Hi c-myers1,

    We will update the version the demos refer, soon. I do not think that there will be any changes in the Angular 2 components needed.

    For example you may use the following systemjs.config.js with Angular RC5.

    (function (global) {
        // map tells the System loader where to look for things
        var map = {
            'app': 'app', // 'dist',
            '@angular': 'https://npmcdn.com/@angular',
            'angular2-in-memory-web-api': 'https://npmcdn.com/angular2-in-memory-web-api',
            'rxjs': 'https://npmcdn.com/rxjs',
            'ts': 'https://npmcdn.com/plugin-typescript@4.0.10/lib/plugin.js',
            'typescript': 'https://npmcdn.com/typescript@1.8.10/lib/typescript.js'
        };
        // packages tells the System loader how to load when no filename and/or no extension
        var packages = {
            'app': { main: 'main.js', defaultExtension: 'js' },
            'rxjs': { defaultExtension: 'js' },
            'angular2-in-memory-web-api': { main: 'index.js', defaultExtension: 'js' },
        };
        var ngPackageNames = [
          'common',
          'compiler',
          'core',
          'forms',
          'http',
          'platform-browser',
          'platform-browser-dynamic',
          'router',
          'router-deprecated',
          'upgrade',
        ];
        // Individual files (~300 requests):
        function packIndex(pkgName) {
            packages['@angular/' + pkgName] = { main: 'index.js', defaultExtension: 'js' };
        }
        // Bundled (~40 requests):
        function packUmd(pkgName) {
            packages['@angular/' + pkgName] = { main: 'bundles/' + pkgName + '.umd.js', defaultExtension: 'js' };
        }
        // Most environments should use UMD; some (Karma) need the individual index files
        var setPackageConfig = System.packageWithIndex ? packIndex : packUmd;
        // Add package entries for angular packages
        ngPackageNames.forEach(setPackageConfig);
    
        var config = {
            transpiler: 'ts',
            defaultJSExtensions: true,
            typescriptOptions: {
                tsconfig: true
            },
            meta: {
                'typescript': {
                    "exports": "ts"
                }
            },
            map: map,
            packages: packages
        }
        System.config(config);
    })(this);

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com/

    Angular 2 #86922

    admin
    Keymaster

    We just updated the systemjs.config.js for our angular 2 components demos and they now use Angular 2 RC 5.

    Angular 2 #86927

    c-myers1
    Participant

    Thanks but some things are a bit confusing for a newbie to both ng2 and jaw like me. For instance, why are you not using ngModules (I know it’s kind of optional). Also why must use of jaw widgets surface obscure features like ViewChild and AfterViewChecked?

    Angular 2 #86928

    Peter Stoev
    Keymaster

    For the purpose of our samples we needed to use only the things we used. If you wish, you can use other features of Angular 2.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com/

    Angular 2 #87047

    sna.arun
    Participant

    Typescript definitions are missing in jQWidgets node package (For e.g. jqwidgets-ts folder). It will be more developer friendly, if the entire set is available in the package.

    Angular 2 #87048

    Peter Stoev
    Keymaster

    Hi sna.arun,

    Thank you for your opinion.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com/

    Angular 2 #87208

    c-myers1
    Participant

    @Peter Stoev: My comment is not a criticism but seeking to understand as I’m new to both ng2 and your widgets. I was basically using widgets of another vendor jquery based but evaluating jqwidgets as an option as my old provider will not have ng2 compatible widgets for a while.

    Now your write-up at http://www.jqwidgets.com/jquery-widgets-documentation/documentation/angular2/angular2.htm?search= suggests that ViewChild, AfterViewChecked need to be used with any widget used. In some other libraries I’ve seen, these are not explicitly utilized. Can you just make it simple for me to understand?

Viewing 15 posts - 1 through 15 (of 16 total)

You must be logged in to reply to this topic.