• Post Reply Bookmark Topic Watch Topic
  • New Topic

looked at Angular and haven't got the magic  RSS feed

 
Ekaterina Galkina
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
May be it's not the right topic, but I've looked at Angular and haven't got the magic:
Here is index.html


As I understand, angular html page should include https://ajax.googleapis.com/ajax/libs/angularjs/1.6.4/angular.min.js But there is no such file included! And there are no other generated from TypeScript JS-files. Althougth everything works. How?
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66263
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We have no idea what is in main.js or system.config.js.
 
Ekaterina Galkina
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
main.js


systemjs.config.js


But anyway, isn't the angular.min.js file the required script?
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66263
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well the systemjs config is obviously what's loading up the Angular scripts.

Other than that, I'm not going to be much help. I have familiarity with AngularJS (the framework previous to Angular -- Google's naming leaves lots to be desired) but not Angular.
 
Nag Kakolla
Greenhorn
Posts: 4
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Answering whether you need ajax.googleapis.com ..../angular.min.js, the way of referencing Angular library is changed from AngularJS version to later versions of Angular.

Use Angular CLI or any seed which will scaffold the project(skeleton project) for you and it will be inherently included and you will see package.json specifiying the version of angular and other relevant libraries versions.

short answer, use any seed project(skeleton project) of Angular

https://github.com/angular/angular-seed (download this code) acts as skeleton project for you

or

https://cli.angular.io/, refer how to install Angular CLI to scaffold angular skeleton project
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!