\n```\n\nThe base href tag in index.html isn’t something specific to Angular. It is an HTML tag which is used to specify the root of the resources, which includes but not limited to script inclusions, media files and style sheet locations.\n\n## What are services in Angular\n\nServices in Angular are nothing but JavaScript functions with its properties and methods that can be used by various components. If you need some specific tasks that need to be done, you could write a service for it and call it in every associated component.\n\nFor e.g., you could write a service that helps fetch data from the internet with the specified URL/ API. This service can then be injected in every component which needs the functionality of calling some internet or API URL to pull data.\n\n## How to create a service in Angular\n\nServices can be created using the Angular-CLI way or without. Let’s learn the both the CLI and non CLI way or manual way, as it teaches us the basic necessary steps to build a service and can help us debug if we hit any errors.\n\n### Creating an angular service manually\n\nBegin with creating the service file in your desired folder inside the app.\n\nService files end with filename and extension as “service.ts” (again, assuming you are using TypeScript).\n\nSo if your service is called the getdata service, you could name the file getdata.service.ts\n\nThe service file follows somewhat similar structure as components, but with different imports and decorator. A service has the same stuffs in the file- Necessary imports, Injectable decorator declaration and the Class with necessary methods or functions.\n\nImports: The service files needs a Injectable import from the angular core.\n\n```javascript\nimport { Injectable } from \"@angular/core\";\n```\n\nInjectable decorator: As similar to component decorator in Component files, we need to declare the @Injectable() decorator in services.\n\n```javascript\n @Injectable()\n```\n\nThe Service Class: Again, similar to the Class exports on the Component class, we need a similar class export for Services. This Class will include the functions and properties.\n\n```javascript\nexport class GetdataService {\n // Declare your functions and variables here.\n yourfunction() {\n return \"Hello!\";\n }\n}\n```\n\nAll your components and services file names needs to follow the appropriate case for class name.\n\nFor e.g., if your filename reads getdata.service.ts- > The corresponding Class name is GetdataService\n\n### Creating a service using the angular cli :\n\nWith Angular CLI the command to generate the service is quite simple.\n\n```javascript\n ng generate service servicename\n```\n\nOR the shortcut way\n\n```javascript\n ng g s servicename\n```\n\nWhere ‘servicename’ is the name of the service.\n\nThis generates the appropriate service file with the imports, decorator and the class name.\n\nYou’ll have to include the service in the NgModule decorator of app.module.ts – if all your components need to use this service. You can include the service in the specific component file too. Read below on how to use the service for more details.\n\n## Using a service in your Angular Components\n\nIn order to start using the service in your component, you first need to import it in your component’s imports.\n\nE.g.,\n\n```javascript\nimport { Component } from \"@angular/core\";\nimport { GetdataService } from \"./getdata.service\";\n```\n\nNext, you begin with providing the import inside the Component decorator. (This is optional if you provide it inside the app module which is accessible by all Components)\n\nE.g.,\n\n```javascript\n @Component({\n selector: 'my-app',\n template: '
Hello {{username}}!
\n```\n\nHere, any entry to the input field will sync with the view and render it besides “Hello”. On the other hand, if you manipulate the value in username using your components or say API for that matter, it would render it in the view and input field.\n\nAnother example for two way binding using a custom directive would be as below:\n\n```html\n{{someValue}}
\n```\n\nSo, that’s all folks. The above was a quick summary notes on the basics on Angular app. Now that we know some of these concepts, you can start with a new app using the cli and start tweaking it to build and use components and services.\n\nBest luck !\n",{"slug":"3c","title":"3d","date":"3e","cover":"3f","draft":"x","lead":"3g","author":"3h","tags":"3m","keywords":"3q","description":"3r","content":"3s"},"g-suite-project-management","Google’s free apps under G Suite for project management","\u00062018-05-26T03:00:17.000Z","project-mgmt.jpeg","Google's apps for project management","itbusinesshub",["3z"],["1r"],"gsuite","project management",["42","43"],"Google G Suite is packaged with various free apps from Google that can be effectively used for project management. Below is the list of the apps and the way it can be used for project management.","[[toc]] \nGoogle G Suite is packaged with various free apps from Google that can be effectively used for project management. Below is the list of the apps and the way it can be used for project management.\n\nThe focus of this article is to use tools with the minimalist tools effectively. A lot of third party apps can be used along with G Suite does exists, but the beauty of better project management is to focus on the absolute needs than using everything the companies can offer. If you are looking for the bare minimum, read on.\n\n## Google’s G Suite apps for project management.\n\n### Google Task : Track, Update and Collaborate\nFor Tracking, Updates management and collaboration make use of Google sheets. Team members can use them at the same time and keep it up to date. You can assign read or write permissions to users of the sheet.\n\nHead over to sheets.google.com and create a new sheet.\non the top row, create headers such as Deliverables, Owner, Deadline, Notes etc\nClick share to share this sheet with your team mates to collaborate collectively on this.\n\n### Creating Groups in GSuite\nIf you would like to have a online group forum to discuss stuffs or form a group email ID to send emails directly to all participants of the group, Google groups is your answer.\n\nHowever, please note- unless you have your own domain registered for Google Apps , these groups will be public.\n\n### Manage and Share calendars in Gsuite\nYou can create shared calendars to keep everyone up to date, or a separate shared project calendar and share it with project members.\n\n### Securely storing and sharing digital assets\nUse Google drive to store and upload your assets. You can assign rights to your team members on who can read or write into specific assets.",{"slug":"3u","title":"3v","date":"3w","cover":"3x","draft":"x","lead":"3y","author":"40","tags":"41","keywords":"44","description":"45","content":"46"},"what-is-gdpr","What is GDPR and why are you receiving lots of policy updates emails?","\u00062018-05-21T11:49:13.000Z","Itbusinesshub-blockchain.jpg","What is GDPR",["3z"],["1r"],"gdpr",["4f"],"What is GDPR? GDPR or General data protection regulation is a law passed by the European Union in Apr 2016, with an effective date of 25th May 2018.GDPR is officially classified as regulation 2016/679","[[toc]] \nWhat is GDPR? GDPR or General data protection regulation is a law passed by the European Union in Apr 2016, with an effective date of 25th May 2018.\nGDPR is officially classified as regulation 2016/679 which extends as well as replaces Data Protection Directive 95/46/EC of 1995. This regulation serves EU’s efforts to regulate, synchronise and harmonise it’s laws on citizen as well as resident’s data privacy – throughout its member states.\n\n## Who does GDPR protects?\nThe term “natural person” is repeated frequently in the texts and this does creates confusions on the definitions of who does this law really protects. “Natural person” here indeed refers to the citizens of the European Union, however it also extends to any resident in EU.\nTo simplify it, all human natives to or residing inside the EU with data to protect are sheltered under the term – ‘data subjects’.\nGDPR focuses on the rights of these ‘data subjects’ to control as well as extensively delete and the private data.\nWhy are you receiving lots of policy updates email?\n“We value your privacy and transparency, hence we would like to let you know about recent updates to our privacy policy “, is one of the common statements amongst few recent emails in your inbox. Companies who hold data of users in the EU, regardless of where they operate from are required to comply with the GDPR law. Under this rules , businesses are required to obtain consent from its users before they store or process their data, especially for marketing purposes. Users outside the EU might also receive these emails as some companies have ethically decided to apply this law to all its users.\n\n## What user rights can you expect from GDPR change?\nAs a part of this law , users can now expect:\n* Right to Data portability.\n* User’s right to access this data.\n* Right to correct the information.\n* Right to be forgotten.\n* Right to restriction of processing.\n* Right to be informed.",{"slug":"48","title":"49","date":"4a","cover":"4b","draft":"x","lead":"4c","author":"4d","tags":"4e","keywords":"4g","description":"4h","content":"4i"},"successful-mentor","Successful mentor's key habits","\u00062017-11-11T03:40:46.000Z","What are the key good habits of a successful mentor",["3z"],"itbusinesshub-mentor.jpeg",["1r"],"mentor","management","mentorship","habits",["4r","4s","4t","4u"],"Great mentors are key to successful career path. Mentors when coach their mentees excellently- further defines your organisations success as well. Having said that, these desired qualities in mentors can definielty be developed with good training and practices","[[toc]] \nGreat mentors are key to successful career path. Mentors when coach their mentees excellently- further defines your organisations success as well. Having said that, these desired qualities in mentors can definielty be developed with good training and practices. Lets have a look at the desired qualities in a successful mentor and how these can be developed.\n\n## Successful mentor qualities\n\n### Actively listens\nActive listening requires that the listener fully concentrates, understands, responds and then remembers what is being said. It is a well noticed trait- where people jump to conclusions in their brains and have already made up their minds on how they are going to respond to what was just said. This does not really help.\nA good mentor has to “really” actively listen and hold his/her urge to respond quickly. Let the whole information sync in without any interruptions. However, good mentors- just don’t sit back like a log when the other person is talking. They take notes, ask questions when the other side has finished and reflect back on what they really understood. One may provide with good non-verbal gestures like eye contact, nodding etc- only conveying their understanding and openness to listen more.\n\nMentors spend much of their time talking and listening to mentees and hence active listening should definitely be a quality to be focused and developed as a key habit.\n\n\n### Success driven for the mentee\nMost successful and happy in life folks are not necessarily only focused on their success. These individuals care about the organization and the people within that organization and have a genuine desire to see everyone and everything succeed: the company, the employees, and the mentoring program as a whole. This is a much desired trait in successful mentor.\nA good mentor not only looks at his success but actively considers and cares about everyone's success.\n### Is a good role model\nGood and successful mentors actively foresee their own actions and plans being suck down into their mentees. That mean’s you plan, behave and action the way you want your mentees to be. Just preaching and not really practicing your preaches is a bad sign and doesn’t go down well as framing you a good mentor.\n### Gives and takes feedback\nGiving feedback to your mentee, both kudos and constructive criticism, is a very rewarding experience for both parties. It can help them improve in an area they have been struggling with, or highlight where they have been successful so they can duplicate their actions to be more successful in the future. At the same time, taking constructive feedbacks from your mentee, also helps improve yourselves and makes the mentee know of your efforts to make things work out for them.\n### Shares stories\nMentees do learn when you share your experiences and stories.One of the main reasons people become mentors is to help someone benefit from your experiences, good and bad. Sharing the knowledge you’ve learned along the way is a great way to help your mentee, but sharing your own personal experience with them is even better.",{"slug":"4k","title":"4l","date":"4m","draft":"x","lead":"4n","author":"4o","cover":"4p","tags":"4q","keywords":"4v","description":"4w","content":"4x"},["21","2h","2w","3b","3t","47","4j","4y"],1.6666666666666667,true,{},"/blog/page/2/","\u0002q-4a658172.js#s_02wMImzEAbk[4 1! 7 6! 7f 52! 3 5!]","\u00032 e 54 #1","\u0002q-4a658172.js#s_fX0bDjeJa0E[4 3 5!]","\u0005https://itbusinesshub.com/blog/page/2/","2",{"page":"58"},"twitter:card","summary_large_image",{"name":"5a","content":"5b"},"twitter:domain","itbusinesshub.com",{"name":"5d","content":"5e"},"description",{"name":"5g","content":"15"},"og:description",{"property":"5i","content":"15"},"twitter:description",{"property":"5k","content":"15"},"og:title",{"property":"5m","content":"15"},"twitter:title",{"property":"5o","content":"15"},"og:url","https://itbusinesshub.com/blog/page/2",{"property":"5q","content":"5r"},"twitter:url",{"property":"5t","content":"5r"},"og:site_name","ITBusinessHub.com",{"property":"5v","content":"5w"},"og:type","website",{"property":"5y","content":"5z"},"ldjson","{\"@context\":\"http://schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"https://itbusinesshub.com/#website\",\"name\":\"ITBusinessHub.com\",\"url\":\"https://itbusinesshub.com\",\"description\":\"Learn about software engineering, web development and how tech fits into the world of business. Welcome to ITBusinessHub.com. We talk about tech problems, solutions and dev tutorials.\",\"thumbnailUrl\":\"https://itbusinesshub.com/images/logo.png\"},{\"@type\":\"WebPage\",\"mainEntityOfPage\":{\"@type\":\"WebPage\"},\"isPartOf\":{\"@id\":\"https://itbusinesshub.com/#website\"},\"headline\":\"Blog\",\"description\":\"Blog\",\"url\":\"https://itbusinesshub.com/blog/page/2\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"ITBusinessHub.com\",\"url\":\"https://itbusinesshub.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://itbusinesshub.com/images/logo.png\",\"width\":\"32\",\"height\":\"32\"}}}]}",{"property":"61","content":"62"},["5c","5f","5h","5j","5l","5n","5p","5s","5u","5x","60","63"],[],[],{},"\u0002q-db5d8fed.js#s_O9AuKCs0SHo[b!]","\u00031 1 68 #d","\u0002q-94b0a93b.js#s_Kketg069kS0","n87ijy-0","\u00112! @1","\u0002q-bec22664.js#s_76oreteZ1U8",2,"\u00112! @2","\u0002q-eae56f82.js#s_BlMA8y6xz08","w-6 h-6","\u0002q-9a89a1ec.js#s_UW0CfM9Datk","\u0011h! @3","\u0011h! @4","\u0011h! @5","\u0011g! @6","\u0011j! @3","\u0011j! @4","\u0011j! @5","\u0011i! @6","\u0011l! @3","\u0011l! @4","\u0011l! @5","\u0011k! @6","\u0011n! @3","\u0011n! @4","\u0011n! @5","\u0011m! @6","\u0011p! @3","\u0011p! @4","\u0011p! @5","\u0011o! @6","\u0011r! @3","\u0011r! @4","\u0011r! @5","\u0011q! @6","\u0011t! @3","\u0011t! @4","\u0011t! @5","\u0011s! @6","\u0011v! @3","\u0011v! @4","\u0011v! @5","\u0011u! @6","\u0001"],"subs":[["_2","0 #8 isRenderedOnLightBackground"],["0 #c menu"],["0 #l posts","0 #m posts","0 #27 totalNumberOfBlogPages"],["0 55"],["0 55"],["1 #3 1i #2 href","0 #l params","0 #27 url"],["0 #2 frontmatter","0 #2 title","0 #2 meta","0 #2 links","0 #2 styles"],["0 #4"],["0 #8 theme"],["0 #a isExpanded"],["_2","0 #d isRenderedOnLightBackground"],["0 #d theme"],["_2","0 #c isRenderedOnLightBackground"],["_2"],["_2","0 #27 currentPage"],["_2","0 #a isRenderedOnLightBackground"],["_2"],["_2","1 #o 6j #n href","3 #p 6k #p","1 #r 6m #q dateTime"],["_2"],["_2","1 #v 6n #u href","3 #w 6o #w","1 #y 6q #x dateTime"],["_2"],["_2","1 #12 6r #11 href","3 #13 6s #13","1 #15 6u #14 dateTime"],["_2"],["_2","1 #19 6v #18 href","3 #1a 6w #1a","1 #1c 6y #1b dateTime"],["_2"],["_2","1 #1g 6z #1f href","3 #1h 70 #1h","1 #1j 72 #1i dateTime"],["_2"],["_2","1 #1n 73 #1m href","3 #1o 74 #1o","1 #1q 76 #1p dateTime"],["_2"],["_2","1 #1u 77 #1t href","3 #1v 78 #1v","1 #1x 7a #1w dateTime"],["_2"],["_2","1 #21 7b #20 href","3 #22 7c #22","1 #24 7e #23 dateTime"]]}