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.ps1 script I opened the project by double clicking the NewModule.sln file. The very first error message greeted me said that Website located at localhost:{cant_remember_the_port_number} cannot be found.
- After building the project in Release mode the Nuget did not populate
Script/ or Content/ 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
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).
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.Script/orContent/folders. So, I had to do that manually.3a.
Loader.ascxis referencing/Client/app.jswhich doesn't exist.However, there is a file named
app.tsbut when I switch definition to/Client/app.tsI getUncaught SyntaxError: Unexpected identifieron line 2module LinkWise {of app.ts file.3b.
{{vm.hello}}is not replaced by the result from the WebApiGetTestEntity().3c.
Api.tsgetData()ether doesn't get data fromGetTestEntityor fails after it get the data. Therefore no result is returned back to theMainCtl.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()" />ofMain.ascxand hitting carriage return key results in me getting redirected to DNN home page. But I am expecting slightly different behaviour to happen whenhelloWorld()is executedNow 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.jsappeared where expected, service was getting data fromGetTestEntity(). Basically module template started to work as expected.The only two things that concern me at this point are
2and3d.But I have not yet tired another clean install to see if
Scripts/andContent/folders would populate with files appropriately.PS: As I said before the instruction were great. But perhaps if something like
TypeScriptis amongrequired toolsto 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