javascript - Pros & Cons of using requirejs (-m amd) for typescript+angular projects -


for angular 1.x project uses typescript, pros , cons of using amd? meaning, running tsc params -m amd , using requirejs, versus using /// <reference path="..." /> internal modules , wrapping in module(s).

which-

  1. makes more sense angularjs? (if think 1 better other in particular case).
  2. is better large scale angular apps?
  3. would better @ minification+obfuscation of large code base?

  1. makes more sense angularjs?

angular1 : --module amd angular2 : --module system the angularjs team uses internally.

  1. is better large scale angular apps?

yes. --out , reference comments are bad idea. more : https://github.com/typestrong/atom-typescript/blob/master/docs/out.md

  1. would better @ minification+obfuscation of large code base?

it same. main advantage dev time readability , maintainability.


Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -