• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

looked at Angular and haven't got the magic

 
Ranch Hand
Posts: 56
  • 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?
 
Marshal
Posts: 67418
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • 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: 56
  • 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
Marshal
Posts: 67418
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • 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.
 
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
 
Consider Paul's rocket mass heater.
    Bookmark Topic Watch Topic
  • New Topic