{"id":420,"date":"2018-03-04T12:32:58","date_gmt":"2018-03-04T11:32:58","guid":{"rendered":"https:\/\/dassiorleando.com\/?p=420"},"modified":"2018-03-04T12:32:58","modified_gmt":"2018-03-04T11:32:58","slug":"angularjs-global-objects-instead-native","status":"publish","type":"post","link":"https:\/\/dassiorleando.com\/fr\/angularjs-global-objects-instead-native\/","title":{"rendered":"AngularJs&#8217;s global objects instead of native ?"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Overview<\/h2>\n\n\n\n<p><a href=\"https:\/\/docs.angularjs.org\/api\/ng\/service\/$timeout\">AngularJs<\/a>\u00a0is one of the widely used open-source front-end frameworks because of its good architecture in place, its extensibility, a lot of interesting features, and the big community around it.<\/p>\n\n\n\n<p>In this short article, we&#8217;re going to showcase a simple example of why it&#8217;s sometimes better to use AngularJS&#8217;s inbuilt global objects and services instead of native ones.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Why use Angular Wrappers?<\/h2>\n\n\n\n<p>AngularJs applications\u00a0are benefiting from some great functionalities, instead of just using those necessary for frontend architecture as an AngularJS lover I strongly advise also taking advantage of the other global objects and services.<\/p>\n\n\n\n<p>The case to show as an example is the famous <strong>setTimeout<\/strong> function of the JavaScript window object, which has its <strong>$timeout<\/strong> corresponding service in AngularJS world.<\/p>\n\n\n\n<p>In simple words, AngularJS wrappers and services are already built to synchronize with AngularJ applications, so can be used without\u00a0any further tricks.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Timeout Usage<\/h2>\n\n\n\n<p><strong>setTimeout<\/strong> is part of the window object, helpful to execute a function or evaluate an expression one time after a certain delay in milliseconds.<\/p>\n\n\n\n<p>Let&#8217;s set up a basic AngularJS application with a controller:<\/p>\n\n\n\n<pre class=\"wp-block-syntaxhighlighter-code\">\/**\n * Simple script to show how to solve the scrope update\n * When using the native js TimeOut call\n * \n * @author dassiorleando\n *\/\n(function (angular) {\n    &#039;use strict&#039;;\n\n    angular\n        .module(&#039;myApp&#039;, []) \/\/ Define our angular app\n        .controller(&#039;IndexController&#039;, IndexController); \/\/ We setup the controller\n\n        IndexController.$inject = [&#039;$scope&#039;, &#039;$timeout&#039;];\n\n        function IndexController($scope, $timeout) {\n            $scope.firstMessage = &#039;First message&#039;;\n            $scope.secondMessage = &#039;Second message&#039;;\n\n            \/\/ Let&#039;s update the first message after 2 seconds\n            \/\/ Angular $timeout service\n            $timeout(function() {\n                $scope.firstMessage = &#039;First message updated&#039;;\n                alert($scope.firstMessage);\n            }, 2000);\n            \n            \/\/ Let&#039;s update the second message after 2 seconds\n            \/\/ Native implementation\n            setTimeout(function() {\n                $scope.secondMessage = &#039;Second message updated&#039;;\n                alert($scope.secondMessage);\n            }, 2000);\n\n            \/\/ Be aware that if the $timeout was called at the second place the digest could be also updated\n            \/\/ That means both messages will be updated despite the use of setTimeout.\n        }\n})(window.angular);<\/pre>\n\n\n\n<p>In this example, after 2 seconds the <strong>firstMessage&nbsp;<\/strong>will be updated but the&nbsp;<strong>secondMessage<\/strong>&nbsp;not, as shown on the following page:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1280\" height=\"234\" src=\"https:\/\/dassiorleando.com\/\/wp-content\/uploads\/2018\/03\/Screen-Shot-2018-03-04-at-11.44.10.png\" alt=\"\" class=\"wp-image-453\" srcset=\"https:\/\/dassiorleando.com\/wp-content\/uploads\/2018\/03\/Screen-Shot-2018-03-04-at-11.44.10.png 1280w, https:\/\/dassiorleando.com\/wp-content\/uploads\/2018\/03\/Screen-Shot-2018-03-04-at-11.44.10-300x55.png 300w, https:\/\/dassiorleando.com\/wp-content\/uploads\/2018\/03\/Screen-Shot-2018-03-04-at-11.44.10-1024x187.png 1024w, https:\/\/dassiorleando.com\/wp-content\/uploads\/2018\/03\/Screen-Shot-2018-03-04-at-11.44.10-768x140.png 768w\" sizes=\"(max-width: 1280px) 100vw, 1280px\" \/><\/figure><\/div>\n\n\n<h3 class=\"wp-block-heading\">setTimeout:<\/h3>\n\n\n\n<p>It is invoked with two parameters, the function we would like to call and the delay for it to happen.<\/p>\n\n\n\n<p>When we are using it in an AngularJS application we also need to apply the eventual scope changes to the angular digest, because the default timeout runs outside the AngularJS life-cycle which also means our\u00a0bidirectional binding will not render the update.<\/p>\n\n\n\n<p>That is why it&#8217;s needed here to refresh the AngularJS scope with the call of\u00a0<strong>$rootScope.$apply() <\/strong>or\u00a0<strong>$rootScope.$applyAsync()<\/strong>.<\/p>\n\n\n\n<p><strong>$apply <\/strong>and&nbsp;<strong>$applyAsync&nbsp;<\/strong>serve the same purpose but with a delay difference on the second one.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">$timeout:<\/h3>\n\n\n\n<p>We almost have the same syntax as the previous one, but there are more parameters to pass to its call.<\/p>\n\n\n\n<p>For example, we can also decide to call it outside the life cycle:<\/p>\n\n\n\n<pre class=\"wp-block-syntaxhighlighter-code\">$timeout(function() {\n    $scope.firstMessage = &#039;First message updated&#039;;\n    alert($scope.firstMessage);\n}, 2000, false);<\/pre>\n\n\n\n<p>Here we see that one more parameter can be added to this service, it&#8217;s a boolean to say if yes or no we want the <strong>apply<\/strong> to follow our function call after 2 seconds.<\/p>\n\n\n\n<p><strong>In simple words, call it with false as the third parameter will call our function outside of the AngularJS life-cycle.<\/strong><\/p>\n\n\n\n<p><strong>Note<\/strong>: By default, this third parameter is true.<\/p>\n\n\n\n<p>The documentation states it clearly <a href=\"https:\/\/docs.angularjs.org\/api\/ng\/service\/$timeout\">here<\/a>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Other Wrappers and Utilities Functions<\/h3>\n\n\n\n<p>There are more AngularJS wrapper services for specific JavaScript objects that can be interesting to use instead of the native ones, sometimes because of the simplicity\/syntax or because of the effect as the one just described up here.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Functions<\/h2>\n\n\n\n<p>Let&#8217;s see another example, where the intent is to know if a variable hasn&#8217;t been declared or has the value <strong>undefined<\/strong>.<\/p>\n\n\n\n<p>Here I feel more confident using:<\/p>\n\n\n\n<pre class=\"wp-block-syntaxhighlighter-code\">if(angular.isDefined(variable)) {\n}<\/pre>\n\n\n\n<p>Instead of:<\/p>\n\n\n\n<pre class=\"wp-block-syntaxhighlighter-code\">if(typeof variable != &#039;undefined&#039;) {\n}<\/pre>\n\n\n\n<p>Others that may be good for you:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>angular.isDate<\/strong>: to know if a variable is a date<\/li>\n\n\n\n<li><strong>angular.isArray<\/strong>: figure out if it&#8217;s an array<\/li>\n\n\n\n<li><strong>angular.copy<\/strong>: make a deep copy of an object<\/li>\n\n\n\n<li><strong>angular.isObject<\/strong>: test an object type<\/li>\n\n\n\n<li><strong>angular.toJson<\/strong>: serialize an object into&nbsp;JSON<\/li>\n\n\n\n<li><strong>angular.fromJson<\/strong>: deserialize a JSON string to an object<\/li>\n<\/ul>\n\n\n\n<p>Others are listed <a href=\"https:\/\/docs.angularjs.org\/api\/ng\/function\">here<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Services<\/h2>\n\n\n\n<p>Some AAngularJS services:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>$document<\/strong>: wrapper for the browser window.document object<\/li>\n\n\n\n<li><strong>$interval<\/strong> for&nbsp;window.setInterval, the repeated version of setTimeout<\/li>\n\n\n\n<li><strong>$http<\/strong> to make remote HTTP call using&nbsp;XMLHttpRequest object or via JSONP<\/li>\n\n\n\n<li><strong>$log<\/strong> for logging into the browser&#8217;s console<\/li>\n<\/ul>\n\n\n\n<p>More services are available in the <a href=\"https:\/\/docs.angularjs.org\/api\/ng\/service\">documentation<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>To resume, in this article, we have seen why sometimes it&#8217;s better to use AngularJS wrappers instead of native implementations while highlighting the timeout use case.<\/p>\n\n\n\n<p>The full source code is available <a href=\"https:\/\/github.com\/dassiorleando\/angular-timeout-digest\">over on GitHub<\/a>.<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Overview AngularJs\u00a0is one of the widely used open-source front-end frameworks because of its good architecture in place, its extensibility, a lot of interesting features, and the big community around it. In this short article, we&#8217;re going to showcase a simple example of why it&#8217;s sometimes better to use AngularJS&#8217;s inbuilt global objects and services instead [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":500,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17,20],"tags":[16,18,19,21],"class_list":["post-420","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-angularjs","category-javascript","tag-timeount","tag-angularjs","tag-digest","tag-settimeout"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.0 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>AngularJs&#039;s global objects instead of native ? - Orleando Dassi<\/title>\n<meta name=\"description\" content=\"In this short article, we&#039;re going to showcase with a simple example why it&#039;s sometimes better to use AngularJS&#039;s inbuilt global objects and services instead of native ones.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/dassiorleando.com\/fr\/angularjs-global-objects-instead-native\/\" \/>\n<meta property=\"og:locale\" content=\"fr_CA\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"AngularJs&#039;s global objects instead of native ? - Orleando Dassi\" \/>\n<meta property=\"og:description\" content=\"In this short article, we&#039;re going to showcase with a simple example why it&#039;s sometimes better to use AngularJS&#039;s inbuilt global objects and services instead of native ones.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/dassiorleando.com\/fr\/angularjs-global-objects-instead-native\/\" \/>\n<meta property=\"og:site_name\" content=\"Orleando Dassi\" \/>\n<meta property=\"article:published_time\" content=\"2018-03-04T11:32:58+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/dassiorleando.com\/wp-content\/uploads\/2018\/03\/Screen-Shot-2018-03-06-at-10.33.14.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1248\" \/>\n\t<meta property=\"og:image:height\" content=\"677\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Orl\u00e9ando Dassi\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@dassiorleando\" \/>\n<meta name=\"twitter:site\" content=\"@dassiorleando\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Orl\u00e9ando Dassi\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/dassiorleando.com\/angularjs-global-objects-instead-native\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/dassiorleando.com\/angularjs-global-objects-instead-native\/\"},\"author\":{\"name\":\"Orl\u00e9ando Dassi\",\"@id\":\"https:\/\/dassiorleando.com\/#\/schema\/person\/4862911e9cf93aa12f17875f7b7b1c5e\"},\"headline\":\"AngularJs&#8217;s global objects instead of native ?\",\"datePublished\":\"2018-03-04T11:32:58+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/dassiorleando.com\/angularjs-global-objects-instead-native\/\"},\"wordCount\":645,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/dassiorleando.com\/#\/schema\/person\/4862911e9cf93aa12f17875f7b7b1c5e\"},\"image\":{\"@id\":\"https:\/\/dassiorleando.com\/angularjs-global-objects-instead-native\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/dassiorleando.com\/wp-content\/uploads\/2018\/03\/Screen-Shot-2018-03-06-at-10.33.14.png\",\"keywords\":[\"$timeount\",\"angularjs\",\"digest\",\"setTimeout\"],\"articleSection\":[\"AngularJS\",\"JavaScript\"],\"inLanguage\":\"fr-CA\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/dassiorleando.com\/angularjs-global-objects-instead-native\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/dassiorleando.com\/angularjs-global-objects-instead-native\/\",\"url\":\"https:\/\/dassiorleando.com\/angularjs-global-objects-instead-native\/\",\"name\":\"AngularJs's global objects instead of native ? - Orleando Dassi\",\"isPartOf\":{\"@id\":\"https:\/\/dassiorleando.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/dassiorleando.com\/angularjs-global-objects-instead-native\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/dassiorleando.com\/angularjs-global-objects-instead-native\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/dassiorleando.com\/wp-content\/uploads\/2018\/03\/Screen-Shot-2018-03-06-at-10.33.14.png\",\"datePublished\":\"2018-03-04T11:32:58+00:00\",\"description\":\"In this short article, we're going to showcase with a simple example why it's sometimes better to use AngularJS's inbuilt global objects and services instead of native ones.\",\"breadcrumb\":{\"@id\":\"https:\/\/dassiorleando.com\/angularjs-global-objects-instead-native\/#breadcrumb\"},\"inLanguage\":\"fr-CA\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/dassiorleando.com\/angularjs-global-objects-instead-native\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"fr-CA\",\"@id\":\"https:\/\/dassiorleando.com\/angularjs-global-objects-instead-native\/#primaryimage\",\"url\":\"https:\/\/dassiorleando.com\/wp-content\/uploads\/2018\/03\/Screen-Shot-2018-03-06-at-10.33.14.png\",\"contentUrl\":\"https:\/\/dassiorleando.com\/wp-content\/uploads\/2018\/03\/Screen-Shot-2018-03-06-at-10.33.14.png\",\"width\":1248,\"height\":677},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/dassiorleando.com\/angularjs-global-objects-instead-native\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/dassiorleando.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"AngularJs&#8217;s global objects instead of native ?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/dassiorleando.com\/#website\",\"url\":\"https:\/\/dassiorleando.com\/\",\"name\":\"Orleando Dassi\",\"description\":\"My personal portfolio and resume\",\"publisher\":{\"@id\":\"https:\/\/dassiorleando.com\/#\/schema\/person\/4862911e9cf93aa12f17875f7b7b1c5e\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/dassiorleando.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"fr-CA\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/dassiorleando.com\/#\/schema\/person\/4862911e9cf93aa12f17875f7b7b1c5e\",\"name\":\"Orl\u00e9ando Dassi\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"fr-CA\",\"@id\":\"https:\/\/dassiorleando.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/dassiorleando.com\/wp-content\/uploads\/2025\/01\/Orleando-Dassi-Consultant-Quebec.webp\",\"contentUrl\":\"https:\/\/dassiorleando.com\/wp-content\/uploads\/2025\/01\/Orleando-Dassi-Consultant-Quebec.webp\",\"width\":1643,\"height\":1747,\"caption\":\"Orl\u00e9ando Dassi\"},\"logo\":{\"@id\":\"https:\/\/dassiorleando.com\/#\/schema\/person\/image\/\"},\"description\":\"I'm a Solutions Architect with 10 years of experience who is constantly learning while impacting the community by producing technical articles\/videos, building projects, and conducting tech mentoring\/coaching sessions. What describes me the most is my flexibility.\",\"sameAs\":[\"https:\/\/dassiorleando.com\/\",\"https:\/\/www.instagram.com\/dassiorleando\/\",\"https:\/\/www.linkedin.com\/in\/dassi-orleando-257b04ab\/\",\"https:\/\/x.com\/dassiorleando\",\"https:\/\/www.youtube.com\/@dassiorleando\"],\"url\":\"https:\/\/dassiorleando.com\/fr\/author\/dassiorleando\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"AngularJs's global objects instead of native ? - Orleando Dassi","description":"In this short article, we're going to showcase with a simple example why it's sometimes better to use AngularJS's inbuilt global objects and services instead of native ones.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/dassiorleando.com\/fr\/angularjs-global-objects-instead-native\/","og_locale":"fr_CA","og_type":"article","og_title":"AngularJs's global objects instead of native ? - Orleando Dassi","og_description":"In this short article, we're going to showcase with a simple example why it's sometimes better to use AngularJS's inbuilt global objects and services instead of native ones.","og_url":"https:\/\/dassiorleando.com\/fr\/angularjs-global-objects-instead-native\/","og_site_name":"Orleando Dassi","article_published_time":"2018-03-04T11:32:58+00:00","og_image":[{"width":1248,"height":677,"url":"https:\/\/dassiorleando.com\/wp-content\/uploads\/2018\/03\/Screen-Shot-2018-03-06-at-10.33.14.png","type":"image\/png"}],"author":"Orl\u00e9ando Dassi","twitter_card":"summary_large_image","twitter_creator":"@dassiorleando","twitter_site":"@dassiorleando","twitter_misc":{"Written by":"Orl\u00e9ando Dassi","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/dassiorleando.com\/angularjs-global-objects-instead-native\/#article","isPartOf":{"@id":"https:\/\/dassiorleando.com\/angularjs-global-objects-instead-native\/"},"author":{"name":"Orl\u00e9ando Dassi","@id":"https:\/\/dassiorleando.com\/#\/schema\/person\/4862911e9cf93aa12f17875f7b7b1c5e"},"headline":"AngularJs&#8217;s global objects instead of native ?","datePublished":"2018-03-04T11:32:58+00:00","mainEntityOfPage":{"@id":"https:\/\/dassiorleando.com\/angularjs-global-objects-instead-native\/"},"wordCount":645,"commentCount":0,"publisher":{"@id":"https:\/\/dassiorleando.com\/#\/schema\/person\/4862911e9cf93aa12f17875f7b7b1c5e"},"image":{"@id":"https:\/\/dassiorleando.com\/angularjs-global-objects-instead-native\/#primaryimage"},"thumbnailUrl":"https:\/\/dassiorleando.com\/wp-content\/uploads\/2018\/03\/Screen-Shot-2018-03-06-at-10.33.14.png","keywords":["$timeount","angularjs","digest","setTimeout"],"articleSection":["AngularJS","JavaScript"],"inLanguage":"fr-CA","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/dassiorleando.com\/angularjs-global-objects-instead-native\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/dassiorleando.com\/angularjs-global-objects-instead-native\/","url":"https:\/\/dassiorleando.com\/angularjs-global-objects-instead-native\/","name":"AngularJs's global objects instead of native ? - Orleando Dassi","isPartOf":{"@id":"https:\/\/dassiorleando.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/dassiorleando.com\/angularjs-global-objects-instead-native\/#primaryimage"},"image":{"@id":"https:\/\/dassiorleando.com\/angularjs-global-objects-instead-native\/#primaryimage"},"thumbnailUrl":"https:\/\/dassiorleando.com\/wp-content\/uploads\/2018\/03\/Screen-Shot-2018-03-06-at-10.33.14.png","datePublished":"2018-03-04T11:32:58+00:00","description":"In this short article, we're going to showcase with a simple example why it's sometimes better to use AngularJS's inbuilt global objects and services instead of native ones.","breadcrumb":{"@id":"https:\/\/dassiorleando.com\/angularjs-global-objects-instead-native\/#breadcrumb"},"inLanguage":"fr-CA","potentialAction":[{"@type":"ReadAction","target":["https:\/\/dassiorleando.com\/angularjs-global-objects-instead-native\/"]}]},{"@type":"ImageObject","inLanguage":"fr-CA","@id":"https:\/\/dassiorleando.com\/angularjs-global-objects-instead-native\/#primaryimage","url":"https:\/\/dassiorleando.com\/wp-content\/uploads\/2018\/03\/Screen-Shot-2018-03-06-at-10.33.14.png","contentUrl":"https:\/\/dassiorleando.com\/wp-content\/uploads\/2018\/03\/Screen-Shot-2018-03-06-at-10.33.14.png","width":1248,"height":677},{"@type":"BreadcrumbList","@id":"https:\/\/dassiorleando.com\/angularjs-global-objects-instead-native\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/dassiorleando.com\/"},{"@type":"ListItem","position":2,"name":"AngularJs&#8217;s global objects instead of native ?"}]},{"@type":"WebSite","@id":"https:\/\/dassiorleando.com\/#website","url":"https:\/\/dassiorleando.com\/","name":"Orleando Dassi","description":"My personal portfolio and resume","publisher":{"@id":"https:\/\/dassiorleando.com\/#\/schema\/person\/4862911e9cf93aa12f17875f7b7b1c5e"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/dassiorleando.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"fr-CA"},{"@type":["Person","Organization"],"@id":"https:\/\/dassiorleando.com\/#\/schema\/person\/4862911e9cf93aa12f17875f7b7b1c5e","name":"Orl\u00e9ando Dassi","image":{"@type":"ImageObject","inLanguage":"fr-CA","@id":"https:\/\/dassiorleando.com\/#\/schema\/person\/image\/","url":"https:\/\/dassiorleando.com\/wp-content\/uploads\/2025\/01\/Orleando-Dassi-Consultant-Quebec.webp","contentUrl":"https:\/\/dassiorleando.com\/wp-content\/uploads\/2025\/01\/Orleando-Dassi-Consultant-Quebec.webp","width":1643,"height":1747,"caption":"Orl\u00e9ando Dassi"},"logo":{"@id":"https:\/\/dassiorleando.com\/#\/schema\/person\/image\/"},"description":"I'm a Solutions Architect with 10 years of experience who is constantly learning while impacting the community by producing technical articles\/videos, building projects, and conducting tech mentoring\/coaching sessions. What describes me the most is my flexibility.","sameAs":["https:\/\/dassiorleando.com\/","https:\/\/www.instagram.com\/dassiorleando\/","https:\/\/www.linkedin.com\/in\/dassi-orleando-257b04ab\/","https:\/\/x.com\/dassiorleando","https:\/\/www.youtube.com\/@dassiorleando"],"url":"https:\/\/dassiorleando.com\/fr\/author\/dassiorleando\/"}]}},"_links":{"self":[{"href":"https:\/\/dassiorleando.com\/fr\/wp-json\/wp\/v2\/posts\/420","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dassiorleando.com\/fr\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dassiorleando.com\/fr\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dassiorleando.com\/fr\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/dassiorleando.com\/fr\/wp-json\/wp\/v2\/comments?post=420"}],"version-history":[{"count":0,"href":"https:\/\/dassiorleando.com\/fr\/wp-json\/wp\/v2\/posts\/420\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/dassiorleando.com\/fr\/wp-json\/wp\/v2\/media\/500"}],"wp:attachment":[{"href":"https:\/\/dassiorleando.com\/fr\/wp-json\/wp\/v2\/media?parent=420"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dassiorleando.com\/fr\/wp-json\/wp\/v2\/categories?post=420"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dassiorleando.com\/fr\/wp-json\/wp\/v2\/tags?post=420"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}