Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentaion on how to use the generated files. #1

Open
justin-romano opened this issue May 19, 2016 · 2 comments
Open

Documentaion on how to use the generated files. #1

justin-romano opened this issue May 19, 2016 · 2 comments
Assignees
Labels

Comments

@justin-romano
Copy link

Would be nice to add an example of best use case.
I found i was getting error with MyNameSpace no defined.
I found i had to include the generated _ReferenceHelper.js in my index.html which seems a bit dirty.
Is there a better typescript`y way to bootstrap the namespace?

@marcelgood marcelgood self-assigned this Oct 11, 2016
@marcelgood
Copy link
Collaborator

We have a comprehensive example that makes use of the tooling. It's an Angular 2 example, but it doesn't sound like you are using Angular 2. All the scripts that the tooling generates need to be loaded of course, including the RegistrationHelper and the RegistrationHelper needs to be called to register all the constructors with Breeze. Depending on what technology stack you are using, that may mean that you need to statically load all the scripts in your index.html. In case of our example, it uses external TypeScript modules, so the scripts get all bundled up with rollup.js into a single js file that gets loaded by index.html.

https://github.com/Breeze/temphire.angular2

@marcelgood
Copy link
Collaborator

I've added some additional guidance to the readme file as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants