GithubHelp home page GithubHelp logo

Comments (5)

DethAriel avatar DethAriel commented on July 27, 2024

Hi! Could you please tell me your ng-recaptcha version and also share the systemjs config file?

from ng-recaptcha.

gal-exelweb avatar gal-exelweb commented on July 27, 2024

Latest 2.0.2 ng-recaptcha,
Latest 4.0.3 angular

Attaching the systemjs.config.js, please be aware that I already removed the 'ng-recaptcha': 'npm:ng-recaptcha/index.js' line

/**, RecaptchaModule.forRoot()
 * System configuration for Angular samples
 * Adjust as necessary for your application needs.
 */
(function (global) {
  System.config({
    paths: {
      // paths serve as alias
      'npm:': 'node_modules/'
    },
    // map tells the System loader where to look for things
    map: {
      // our app is within the app folder
      'app': 'app',

      // angular bundles
      '@angular/core': 'npm:@angular/core/bundles/core.umd.js',
      '@angular/common': 'npm:@angular/common/bundles/common.umd.js',
      '@angular/compiler': 'npm:@angular/compiler/bundles/compiler.umd.js',
      '@angular/platform-browser': 'npm:@angular/platform-browser/bundles/platform-browser.umd.js',
      '@angular/platform-browser-dynamic': 'npm:@angular/platform-browser-dynamic/bundles/platform-browser-dynamic.umd.js',
      '@angular/http': 'npm:@angular/http/bundles/http.umd.js',
      '@angular/router': 'npm:@angular/router/bundles/router.umd.js',
      '@angular/forms': 'npm:@angular/forms/bundles/forms.umd.js',
      'ng2-validation': 'npm:ng2-validation/bundles/ng2-validation.umd.js',
      'ng2-simple-global': 'https://npmcdn.com/ng2-simple-global/lib/simple-global.js',

      // other libraries
      'rxjs':                      'npm:rxjs',
      'angular-in-memory-web-api': 'npm:angular-in-memory-web-api/bundles/in-memory-web-api.umd.js'
    },
    // packages tells the System loader how to load when no filename and/or no extension
    packages: {
      app: {
        defaultExtension: 'js',
        meta: {
          './*.js': {
            loader: 'systemjs-angular-loader.js'
          }
        }
      },
      rxjs: {
          defaultExtension: 'js'
      },
      'ng2-custom-validation': {
          defaultExtension: 'js'
      }
    }
  });
})(this);

from ng-recaptcha.

DethAriel avatar DethAriel commented on July 27, 2024

Try doing it this way (it's how the demos for ng-recaptcha work):

System.config({
  map: {
    /* ... */
    'ng-recaptcha': 'npm:ng-recaptcha',
  },
  packages: {
    /* ... */
    'ng-recaptcha': { main: 'index.js', defaultExtension: 'js' },
  },
});

from ng-recaptcha.

DethAriel avatar DethAriel commented on July 27, 2024

Please, let me know if the issue you've encountered gets resolved by this

from ng-recaptcha.

gal-exelweb avatar gal-exelweb commented on July 27, 2024

That's awsome!
Works well, I wonder how I missed it...
Might consider adding it to the documentation for easier future integration? :)

from ng-recaptcha.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.