{"id":18659,"date":"2015-03-30T15:28:28","date_gmt":"2015-03-30T09:58:28","guid":{"rendered":"https:\/\/2thenew.online\/blog\/?p=18659"},"modified":"2017-08-03T15:57:45","modified_gmt":"2017-08-03T10:27:45","slug":"configurable-service-in-angularjs","status":"publish","type":"post","link":"https:\/\/2thenew.online\/blog\/configurable-service-in-angularjs\/","title":{"rendered":"Configurable Service in AngularJS"},"content":{"rendered":"<p><a title=\"Angular Development\" href=\"https:\/\/2thenew.online\/front-end-angularjs-development\">Angular<\/a> provide services for handling non-view logic, communication with server(back-end) and can holds data &amp; state. These services are singleton objects that can be used to share and organize code. For doing so, angular provides us five cool ways to make a service on the bases of once need.<\/p>\n<p>Following are the five approaches that can be used to create a service in angular:<\/p>\n<p>1) Value<\/p>\n<p>[code language=&#8221;javascript&#8221;]app.value(&#8216;name&#8217;, &#8216;Vibhor Kukreja&#8217;);[\/code]<\/p>\n<p>2) Constant<\/p>\n<p>[code language=&#8221;javascript&#8221;]app.constant(&#8216;name&#8217;, &#8216;Vibhor Kukreja&#8217;);[\/code]<\/p>\n<p>3) Factory<\/p>\n<p>[code language=&#8221;javascript&#8221;]app.factory(&#8216;myService&#8217;, function(){<br \/>\n        return{<br \/>\n              getName: function() {<br \/>\n                       return &#8216;Vibhor Kukreja&#8217;;<br \/>\n                       }<br \/>\n              }<br \/>\n});[\/code]<\/p>\n<p>4) Service<\/p>\n<p>[code language=&#8221;javascript&#8221;]app.service(&#8216;myService&#8217;, function() {<br \/>\n       var name = &#8216;Vibhor Kukreja&#8217;;<br \/>\n       this.myName = function() {<br \/>\n                      return name;<br \/>\n                    }<br \/>\n});[\/code]<\/p>\n<p>5) Provider<\/p>\n<p>[code language=&#8221;javascript&#8221;]app.config(function($provide){<br \/>\n\t\t$provide.provider(&#8216;myService&#8217;, function(){<br \/>\n\t\t\treturn {<br \/>\n\t\t\t\t$get: function() {<br \/>\n\t\t\t\t\treturn {<br \/>\n\t\t\t\t\t\tname: &#8216;Vibhor Kukreja&#8217;<br \/>\n\t\t\t\t\t\t}<br \/>\n\t\t\t\t\t}<br \/>\n\t\t\t\t}<br \/>\n\t\t});<br \/>\n});[\/code]<\/p>\n<p>All these approaches have their own key use cases. Depending upon the use case, one can pick an approach to implement a service.<\/p>\n<p>The main focus of the blog is on the Provider approach of Angular Services.<\/p>\n<p>The provider approach allows us to make a service from a much lower level, which makes the service to be configurable. In this, we have a function that returns an object with a function named $get.<br \/>\nThe angular calls this $get function once to create your service(since it is singleton) at the start application<\/p>\n<p>Now, we can configure the service with the provider approach before it gets created.<\/p>\n<p>[code language=&#8221;javascript&#8221;]app.config(function($provide){<br \/>\n\t$provide.provider(&#8216;myService&#8217;, function(){<br \/>\n\t\tvar msg;<br \/>\n\t\treturn {<br \/>\n\t\t\tmyConfig: function(greet) {<br \/>\n\t\t\t\t\tmsg = greet;<br \/>\n\t\t\t},<br \/>\n\t\t\t$get: function() {<br \/>\n\t\t\t\treturn {<br \/>\n\t\t\t\t\tname: msg + &#8216; Vibhor Kukreja&#8217;<br \/>\n\t\t\t\t\t}<br \/>\n\t\t\t\t}<br \/>\n\t\t\t}<br \/>\n\t});<br \/>\n});<\/p>\n<p>app.config(function (myServiceProvider)) {<br \/>\n\tmyServiceProvider.myConfig(&#8216;Hello&#8217;);<br \/>\n}[\/code]<\/p>\n<p>The thing that we need to remember is that, the $get function is only called once, at the time of <a title=\"Building Intuitive Frontend Interfaces with AngularJS\" href=\"https:\/\/2thenew.online\/blog\/building-intuitive-frontend-interfaces-with-angularjs\/\">application configuration phase<\/a>. And once you have used the service on run-time then you can&#8217;t re-configure it.<\/p>\n<p>Hope this will help.<\/p>\n<p><span style=\"font-size: 20px; color: blue;\">Read Further on AngularJS Series<\/span><\/p>\n<ul>\n<li><a href=\"https:\/\/2thenew.online\/blog\/angularjs-a-write-less-do-more-javascript-framework\/\">AngularJS :\u00a0A \u201cWrite Less Do More\u201d JavaScript Framework<\/a><\/li>\n<li><a href=\"https:\/\/2thenew.online\/blog\/angularjs-updating-a-label-dynamically-with-user-input\/\">AngularJS :\u00a0Updating a Label Dynamically with User Input<\/a><\/li>\n<li><a href=\"https:\/\/2thenew.online\/blog\/angularjs-adding-items-to-a-javascript-list-and-updating-corresponding-dom-dynamically\/\">AngularJS :\u00a0Adding Items to a JavaScript List and updating corresponding DOM Dynamically<\/a><\/li>\n<li><a href=\"https:\/\/2thenew.online\/blog\/angularjs-text-suggestions\/\">AngularJS :\u00a0Text Suggestions<\/a><\/li>\n<li><a href=\"https:\/\/2thenew.online\/blog\/angularjs-sorting-objects-on-various-attributes\/\">AngularJS :\u00a0Sorting objects on various attributes<\/a><\/li>\n<li><a href=\"https:\/\/2thenew.online\/blog\/angularjs-fetching-data-from-the-server\/\">AngularJS :\u00a0Fetching data from the server<\/a><\/li>\n<li><a href=\"https:\/\/2thenew.online\/blog\/angularjs-multiple-views-layout-template-and-routing\/\">AngularJS :\u00a0Multiple Views, Layout\u00a0Template\u00a0and Routing<\/a><\/li>\n<li><a href=\"https:\/\/2thenew.online\/blog\/angularjs-implementing-routes-and-multiple-views\/\">AngularJS :\u00a0Implementing Routes And Multiple Views<\/a><\/li>\n<li><a href=\"https:\/\/2thenew.online\/blog\/building-intuitive-frontend-interfaces-with-angularjs\/\">Building Intuitive Frontend Interfaces with AngularJS<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Angular provide services for handling non-view logic, communication with server(back-end) and can holds data &amp; state. These services are singleton objects that can be used to share and organize code. For doing so, angular provides us five cool ways to make a service on the bases of once need. Following are the five approaches that [&hellip;]<\/p>\n","protected":false},"author":99,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"iawp_total_views":5,"footnotes":""},"categories":[1185],"tags":[3955,955,4697,55],"class_list":["post-18659","post","type-post","status-publish","format-standard","hentry","category-node-js-2","tag-angular-development","tag-angularjs","tag-angularjs-development-company","tag-javascript"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.0.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"Angular provide services for handling non-view logic, communication with server(back-end) and can holds data &amp; state. These services are singleton objects that can be used to share and organize code. For doing so, angular provides us five cool ways to make a service on the bases of once need. Following are the five approaches that\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Vibhor Kukreja\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/2thenew.online\/blog\/configurable-service-in-angularjs\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.0.1\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"TO THE NEW BLOG\" \/>\n\t\t<meta property=\"og:type\" content=\"blog\" \/>\n\t\t<meta property=\"og:title\" content=\"Configurable Service in AngularJS | TO THE NEW Blog\" \/>\n\t\t<meta property=\"og:description\" content=\"Angular provide services for handling non-view logic, communication with server(back-end) and can holds data &amp; state. These services are singleton objects that can be used to share and organize code. For doing so, angular provides us five cool ways to make a service on the bases of once need. Following are the five approaches that\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/2thenew.online\/blog\/configurable-service-in-angularjs\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/2thenew.online\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/2thenew.online\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:site\" content=\"@tothenew\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Configurable Service in AngularJS | TO THE NEW Blog\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Angular provide services for handling non-view logic, communication with server(back-end) and can holds data &amp; state. These services are singleton objects that can be used to share and organize code. For doing so, angular provides us five cool ways to make a service on the bases of once need. Following are the five approaches that\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/2thenew.online\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/configurable-service-in-angularjs\\\/#article\",\"name\":\"Configurable Service in AngularJS | TO THE NEW Blog\",\"headline\":\"Configurable Service in AngularJS\",\"author\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/vibhor-kukreja\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\"},\"datePublished\":\"2015-03-30T15:28:28+05:30\",\"dateModified\":\"2017-08-03T15:57:45+05:30\",\"inLanguage\":\"en-US\",\"commentCount\":1,\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/configurable-service-in-angularjs\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/configurable-service-in-angularjs\\\/#webpage\"},\"articleSection\":\"Node.js, angular development, AngularJS, AngularJS Development Company, javascript\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/configurable-service-in-angularjs\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.tothenew.com\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/node-js-2\\\/#listItem\",\"name\":\"Node.js\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/node-js-2\\\/#listItem\",\"position\":2,\"name\":\"Node.js\",\"item\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/node-js-2\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/configurable-service-in-angularjs\\\/#listItem\",\"name\":\"Configurable Service in AngularJS\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/configurable-service-in-angularjs\\\/#listItem\",\"position\":3,\"name\":\"Configurable Service in AngularJS\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/node-js-2\\\/#listItem\",\"name\":\"Node.js\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\",\"name\":\"TO THE NEW Blog\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/vibhor-kukreja\\\/#author\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/vibhor-kukreja\\\/\",\"name\":\"Vibhor Kukreja\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/configurable-service-in-angularjs\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/b6f356c071a634e6360accc831ed76faed3f121165a8952666c71c81773cbc48?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Vibhor Kukreja\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/configurable-service-in-angularjs\\\/#webpage\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/configurable-service-in-angularjs\\\/\",\"name\":\"Configurable Service in AngularJS | TO THE NEW Blog\",\"description\":\"Angular provide services for handling non-view logic, communication with server(back-end) and can holds data & state. These services are singleton objects that can be used to share and organize code. For doing so, angular provides us five cool ways to make a service on the bases of once need. Following are the five approaches that\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/configurable-service-in-angularjs\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/vibhor-kukreja\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/vibhor-kukreja\\\/#author\"},\"datePublished\":\"2015-03-30T15:28:28+05:30\",\"dateModified\":\"2017-08-03T15:57:45+05:30\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/\",\"name\":\"TO THE NEW Blog\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Configurable Service in AngularJS | TO THE NEW Blog","description":"Angular provide services for handling non-view logic, communication with server(back-end) and can holds data & state. These services are singleton objects that can be used to share and organize code. For doing so, angular provides us five cool ways to make a service on the bases of once need. Following are the five approaches that","canonical_url":"https:\/\/2thenew.online\/blog\/configurable-service-in-angularjs\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/2thenew.online\/blog\/configurable-service-in-angularjs\/#article","name":"Configurable Service in AngularJS | TO THE NEW Blog","headline":"Configurable Service in AngularJS","author":{"@id":"https:\/\/2thenew.online\/blog\/author\/vibhor-kukreja\/#author"},"publisher":{"@id":"https:\/\/2thenew.online\/blog\/#organization"},"datePublished":"2015-03-30T15:28:28+05:30","dateModified":"2017-08-03T15:57:45+05:30","inLanguage":"en-US","commentCount":1,"mainEntityOfPage":{"@id":"https:\/\/2thenew.online\/blog\/configurable-service-in-angularjs\/#webpage"},"isPartOf":{"@id":"https:\/\/2thenew.online\/blog\/configurable-service-in-angularjs\/#webpage"},"articleSection":"Node.js, angular development, AngularJS, AngularJS Development Company, javascript"},{"@type":"BreadcrumbList","@id":"https:\/\/2thenew.online\/blog\/configurable-service-in-angularjs\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/2thenew.online\/blog#listItem","position":1,"name":"Home","item":"https:\/\/2thenew.online\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/2thenew.online\/blog\/category\/node-js-2\/#listItem","name":"Node.js"}},{"@type":"ListItem","@id":"https:\/\/2thenew.online\/blog\/category\/node-js-2\/#listItem","position":2,"name":"Node.js","item":"https:\/\/2thenew.online\/blog\/category\/node-js-2\/","nextItem":{"@type":"ListItem","@id":"https:\/\/2thenew.online\/blog\/configurable-service-in-angularjs\/#listItem","name":"Configurable Service in AngularJS"},"previousItem":{"@type":"ListItem","@id":"https:\/\/2thenew.online\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/2thenew.online\/blog\/configurable-service-in-angularjs\/#listItem","position":3,"name":"Configurable Service in AngularJS","previousItem":{"@type":"ListItem","@id":"https:\/\/2thenew.online\/blog\/category\/node-js-2\/#listItem","name":"Node.js"}}]},{"@type":"Organization","@id":"https:\/\/2thenew.online\/blog\/#organization","name":"TO THE NEW Blog","url":"https:\/\/2thenew.online\/blog\/"},{"@type":"Person","@id":"https:\/\/2thenew.online\/blog\/author\/vibhor-kukreja\/#author","url":"https:\/\/2thenew.online\/blog\/author\/vibhor-kukreja\/","name":"Vibhor Kukreja","image":{"@type":"ImageObject","@id":"https:\/\/2thenew.online\/blog\/configurable-service-in-angularjs\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/b6f356c071a634e6360accc831ed76faed3f121165a8952666c71c81773cbc48?s=96&d=mm&r=g","width":96,"height":96,"caption":"Vibhor Kukreja"}},{"@type":"WebPage","@id":"https:\/\/2thenew.online\/blog\/configurable-service-in-angularjs\/#webpage","url":"https:\/\/2thenew.online\/blog\/configurable-service-in-angularjs\/","name":"Configurable Service in AngularJS | TO THE NEW Blog","description":"Angular provide services for handling non-view logic, communication with server(back-end) and can holds data & state. These services are singleton objects that can be used to share and organize code. For doing so, angular provides us five cool ways to make a service on the bases of once need. Following are the five approaches that","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/2thenew.online\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/2thenew.online\/blog\/configurable-service-in-angularjs\/#breadcrumblist"},"author":{"@id":"https:\/\/2thenew.online\/blog\/author\/vibhor-kukreja\/#author"},"creator":{"@id":"https:\/\/2thenew.online\/blog\/author\/vibhor-kukreja\/#author"},"datePublished":"2015-03-30T15:28:28+05:30","dateModified":"2017-08-03T15:57:45+05:30"},{"@type":"WebSite","@id":"https:\/\/2thenew.online\/blog\/#website","url":"https:\/\/2thenew.online\/blog\/","name":"TO THE NEW Blog","inLanguage":"en-US","publisher":{"@id":"https:\/\/2thenew.online\/blog\/#organization"}}]},"og:locale":"en_US","og:site_name":"TO THE NEW BLOG","og:type":"blog","og:title":"Configurable Service in AngularJS | TO THE NEW Blog","og:description":"Angular provide services for handling non-view logic, communication with server(back-end) and can holds data &amp; state. These services are singleton objects that can be used to share and organize code. For doing so, angular provides us five cool ways to make a service on the bases of once need. Following are the five approaches that","og:url":"https:\/\/2thenew.online\/blog\/configurable-service-in-angularjs\/","og:image":"https:\/\/2thenew.online\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png","og:image:secure_url":"https:\/\/2thenew.online\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png","twitter:card":"summary","twitter:site":"@tothenew","twitter:title":"Configurable Service in AngularJS | TO THE NEW Blog","twitter:description":"Angular provide services for handling non-view logic, communication with server(back-end) and can holds data &amp; state. These services are singleton objects that can be used to share and organize code. For doing so, angular provides us five cool ways to make a service on the bases of once need. Following are the five approaches that","twitter:image":"https:\/\/2thenew.online\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png"},"aioseo_meta_data":{"post_id":"18659","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":"","og_description":"","og_object_type":"blog","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":"","og_custom_url":null,"og_article_section":"","og_article_tags":"","twitter_use_og":false,"twitter_card":"summary","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"Article","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"limit_modified_date":false,"created":"2021-04-30 06:10:35","updated":"2024-02-29 09:47:29","focus_keyword":null,"additional_keywords":null,"truseo_locale":null,"ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/2thenew.online\/blog\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/2thenew.online\/blog\/category\/node-js-2\/\" title=\"Node.js\">Node.js<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tConfigurable Service in AngularJS\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/2thenew.online\/blog"},{"label":"Node.js","link":"https:\/\/2thenew.online\/blog\/category\/node-js-2\/"},{"label":"Configurable Service in AngularJS","link":"https:\/\/2thenew.online\/blog\/configurable-service-in-angularjs\/"}],"_links":{"self":[{"href":"https:\/\/2thenew.online\/blog\/wp-json\/wp\/v2\/posts\/18659","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/2thenew.online\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/2thenew.online\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/2thenew.online\/blog\/wp-json\/wp\/v2\/users\/99"}],"replies":[{"embeddable":true,"href":"https:\/\/2thenew.online\/blog\/wp-json\/wp\/v2\/comments?post=18659"}],"version-history":[{"count":0,"href":"https:\/\/2thenew.online\/blog\/wp-json\/wp\/v2\/posts\/18659\/revisions"}],"wp:attachment":[{"href":"https:\/\/2thenew.online\/blog\/wp-json\/wp\/v2\/media?parent=18659"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/2thenew.online\/blog\/wp-json\/wp\/v2\/categories?post=18659"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/2thenew.online\/blog\/wp-json\/wp\/v2\/tags?post=18659"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}