-
Notifications
You must be signed in to change notification settings - Fork 4
Description
Hi there, I pulled down this module template to give it shot. First impression was great. Instructions were very helpful.
But there are a few things I noticed which didn't work for me (read to the end for solution).
- After executing
Setup Template.ps1script I opened the project by double clicking theNewModule.slnfile. The very first error message greeted me said thatWebsitelocated atlocalhost:{cant_remember_the_port_number}cannot be found. - After building the project in Release mode the Nuget did not populate
Script/orContent/folders. So, I had to do that manually. - Upon successful installation the example didn't work for me.
3a. Loader.ascx is referencing /Client/app.js which doesn't exist.
However, there is a file named app.ts but when I switch definition to /Client/app.ts I get Uncaught SyntaxError: Unexpected identifier on line 2 module LinkWise { of app.ts file.
3b. {{vm.hello}} is not replaced by the result from the WebApi GetTestEntity().
3c. Api.ts getData() ether doesn't get data from GetTestEntity or fails after it get the data. Therefore no result is returned back to the MainCtl.ts. Therefore <div ng-controller="MainCtl as vm"> has no value to put sub into {{vm.hello}}.
3d. Typing anything into <input type="text" data-ng-enter="vm.helloWorld()" /> of Main.ascx and hitting carriage return key results in me getting redirected to DNN home page. But I am expecting slightly different behaviour to happen when helloWorld() is executed
public helloWorld() {
this.$log.info('I accept your greeting');
}
Now in saying all the above this module template was the first time I came across TypeScript. And that was part of the problem. After installing TypeScript 1.4 for my VS 2013 app.js appeared where expected, service was getting data from GetTestEntity(). Basically module template started to work as expected.
The only two things that concern me at this point are 2 and 3d.
But I have not yet tired another clean install to see if Scripts/ and Content/ folders would populate with files appropriately.
PS: As I said before the instruction were great. But perhaps if something like TypeScript is among required tools to enable the use of this template would have helped to kick start the process.
PSS: I was testing this on clean DNN 7.3.3 install.
PSSS: Very nice module template hands down. Now I just need to learn how to make proper use of it :p