Angular2 Sample App Config


#1

I am trying to follow the instructions here to run standalone:

After some struggles with dependencies (turns out you need Visual Studio installed) I can’t find a app\config\config.ts file anywhere. The instruction say that you need to enter the DF url and key in this file, but it doesn’t exist.


#2

I don’t think you need visual studio for that.
secondly you have to enter url and key in app/config/constants.ts

hope that helps


#3

You need visual studio if you are running node.js on windows and install this sdk. Otherwise npm install fails.

I also added a pull request to fixt he readme, but it seems that no one is maintaining the github repository.
https://github.com/dreamfactorysoftware/angular2-sdk/pull/6

So if anyone else is looking for this answer, they moved the URL and API key into index.html. It is no longer in app/config/constants.ts.