- install the npm dependencies:
npm install
- run the webpack server:
npm start
-
access the
index.htmlfile index.html -
create in the console new
TestServiceobject and check its methods and properties:
var obj = new TestService();
console.log(obj.testProp); // 27
obj.showTest('NEW value'); // This is a public test method. The parameter value is: NEW value