• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

looked at Angular and haven't got the magic

 
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
We have no idea what is in main.js or system.config.js.
 
Ekaterina Galkina
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
main.js


systemjs.config.js


But anyway, isn't the angular.min.js file the required script?
 
Bear Bibeault
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
reply
    Bookmark Topic Watch Topic
  • New Topic