changed scope of link function. It can now consume services injected fro...

in the previous template. It was not able to access services injected in constructor. I changed it's scope. Now it will be able to execute all dependency injected.