Git Product home page Git Product logo

Comments (4)

christiaanwesterbeek avatar christiaanwesterbeek commented on May 18, 2024 1

The change in PR #28 seems inconsistent with the way I'm used to exporting a module. I think we should return the name property. Not sure about the rest of you.

return angular.module('ngMeta', [])
  .provider('ngMeta', function() {
    ...
  })
  .name // <-- return the name

Without returning the name, I need to

import angular from 'angular'
import 'ng-meta'

export const AppModule = angular
  .module('app', [
    'ngMeta'
  ])
  .name

And I would like to:

import angular from 'angular'
import ngMeta from 'ng-meta'

export const AppModule = angular
  .module('app', [
    ngMeta
  ])
  .name

from ngmeta.

mcgilly17 avatar mcgilly17 commented on May 18, 2024

@vinaygopinath can you check this please? we are hoping to use this in prod asap.

Thanks

McGilly

from ngmeta.

Nargonath avatar Nargonath commented on May 18, 2024

It would require a simple modification in the ngMeta.js. Just need to return the angular.module name at the end of the file. I can make the PR if needed.

from ngmeta.

vinaygopinath avatar vinaygopinath commented on May 18, 2024

@devotis Thanks for the suggestion. I'm open for the module to return the name as long as it has no impact on the way the module is imported in other build systems. Would you be willing to test it out with webpack, and, say, gulp and make a new PR?

from ngmeta.

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.