Skip to main content
deleted 10 characters in body
Source Link
Karim
  • 8.7k
  • 3
  • 27
  • 36

just a tip my friend that maybe should solve your issue, a service shouldn't be used to return an object, it's instantiated once by the core of angular and then cached so inside the service recipe you should refer with the keyword this as it is a constructor function:

 .service('ServiceDemo', function ()
{
   this.fn =  "1452522";
})

just a tip my friend that maybe should solve your issue, a service shouldn't be used to return an object, it's instantiated once by the core of angular and then cached so inside the service recipe you should refer with the keyword this as it is a constructor function:

 .service('ServiceDemo', function ()
{
   this.fn =  "1452522";
})

just a tip, a service shouldn't be used to return an object, it's instantiated once by the core of angular and then cached so inside the service recipe you should refer with the keyword this as it is a constructor function:

 .service('ServiceDemo', function ()
{
   this.fn =  "1452522";
})
Source Link
Karim
  • 8.7k
  • 3
  • 27
  • 36

just a tip my friend that maybe should solve your issue, a service shouldn't be used to return an object, it's instantiated once by the core of angular and then cached so inside the service recipe you should refer with the keyword this as it is a constructor function:

 .service('ServiceDemo', function ()
{
   this.fn =  "1452522";
})