Communicate Between Components Using Angular Dependency Injection
lessonDuration 3m 30s
Allow more than one child component of the same type. Allow child components to be placed within the views of other custom components
Browse
Find courses, lessons, articles, talks, and podcasts.
7,176 resources
Showing 5,257–5,280 · Page 220 of 299
lessonDuration 3m 30s
Allow more than one child component of the same type. Allow child components to be placed within the views of other custom components
lessonDuration 44s
Bash may seem like a strange tool to invest time into learning—it’s old (like literally as old as I am) and doesn’t have the appeal of learning that new framework everyone’s talking about. But in my experience, whenever I’ve invested time into learning more about it , whether it’s just a few commands or it’s core language syntax, it’s always paid off for me by increasing my productivity and enhancing my ability to contribute to my team at work. In this course, you'll learn the essentials of what every front-end developer should know about bash. The topics we cover will give you confidence in doing things like creating build scripts that run on continuous integration servers, quickly testing and debugging an API with curl, and more—the automation possibilities with bash are endless. By the end of the course, you’ll be able to use bash to interact with the file system, search text patterns in files, create scripts, pipe and redirect output, and use variables and conditionals. Enjoy the course!
lessonDuration 5m 32s
Allow the user to control the view of the toggle component. Break the toggle component up into multiple composable components that can be rearranged by the app developer.
lessonDuration 3m 8s
Create a simple presentational component in Angular that encapsulates static view and logic decisions, but allows the parent component to set state with Inputs and listen to state changes with Outputs.
lessonDuration 56s
Building a real world, scalable & production-ready GraphQL API is hard. In this course, we’ll learn how to create a production-ready GraphQL API that can handle everything from queries to mutations & subscriptions. We’ll also connect to our API from a React application and execute queries, mutations & subscriptions using the new API.
lessonDuration 57sFree
Sometimes it is convenient to be able to use both: template strings and objects. We will add a mixed mode to our CSS-in-JS function in just 2 lines of code and enable copy-pasting CSS from the dev tools.
lessonDuration 3m 55sFree
In this lesson, I refactor a simple Counter component connected to Redux to use Unstated instead. I explain some of the cognitive overhead of working with Redux and how Unstated can help simplify your application codebase. *Additional Resources* https://github.com/jamiebuilds/unstated
lessonDuration 57s
In this course we are going to build an Angular app from scratch using Angular CLI. The app that we are going to build is a simple product list and detail page. After this is done we will implement a common pattern by separating our components between Container components and Presentational components. We create a Service to handle our API calls, and make use of Angular Resolvers to fetch the data before the components are displayed. At this point our actual app is ready and we will move on by adding Server Side Rendering using Angular Universal. We will deploy the app to now.sh and add dynamic metadata to our pages. The app is now Search Engine Friendly and also has richt previews when being shared on social media. We will wrap the course up by adding a Service Worker using Angular PWA. When you finish this course you will be comfortable in creating a modern, Search Engine Friendly application in Angular, from scratch or use the patterns in your existing applications.
lessonDuration 3m 30s
In this lesson we will add a Service Worker and convert our app into a Progressive Web Application (PWA). We can do this by running `ng add @angular/pwa`. We will use Lighthouse to generate a score and gradually improve this score. Using `ngsw-config.json` we define which `assetGroups` and `dataGroups` should be cached. In `index.html` we add a `noscript` tag so there won't be a blank page if the javascript is disabled, and lastly we add `robots.txt` to make sure our site can be indexed.
lessonDuration 6mFree
Create React App is great, but it's hard to customize. If you want to add support for SASS/SCSS, react-intl, or any custom Webpack plugins, there's no official way to do that without ejecting. This lesson shows you how to use the react-app-rewired library to customize CRA and its Webpack config *without* ejecting. Learn how to set up your rewire config and add the sass-loader so that your create-react-app project will support SCSS.
lessonDuration 3m
Pipes (`|`) are one of the most powerful features in bash and allow you to efficiently chain commands together and send data through it. We'll also look at how output redirection works using the stdout redirect operator (`>`). This allows us to take the output of a command and send it to a file. You can also append to a file using `>>`. Read [this article](https://www.tldp.org/LDP/abs/html/io-redirection.html) for more information on bash redirection.
lessonDuration 4m 23sFree
Some websites are less interactive and more informative. These websites just need a simple setup and we can manage and update them using Markdown. An example of such are documentation websites, online labs/guides, blogs, and even some commercial websites. Vuepress reduces the time spent on setting up a website down to as simple as writing a configuration object and creating Markdown files. It then transforms and generates a website for you based on these two ingredients. This lesson shows how to quickly get started with Vuepress and showcases some of it's important configs.
lessonDuration 2m 46s
In this lesson we will create a `UiService` and inside that service we create some application defaults, import the `Title` and `Meta` services from `@angular/platform-browser` and create a function called `setMetaData`. This function will set the metadata of the application based on the `config` parameter. We set some defaults and define a list with tags. We then loop over the tags and invoke the `updateTags` method from the `Meta` service. Once our service is ready we update the `ProductListComponent` and `ProductDetailComponent` to dynamically set the meta data by using the `tap` operator in the `pipe` from our Subscription. After building and deploying the app we see that the meta data gets updated, and we can now share the app over Social Media and get rich social previews.
lessonDuration 59s
In this lesson we will add support for deploying our application to [now.sh](https://zeit.co/now). We will create a `now` object in package.json where we configure the name, the alias and the list of files we want to deploy. We create an npm run-script called `now-build` and set the value to `true` to skip building the project on `now.sh`. The second run-script called `now` invokes `now deploy && now alias`. After this we sun `npm run build && npm run now` to build and deploy our app!
lessonDuration 4m 53s
In this lesson we will add Server Side Rendering to our application using Angular Universal. We'll build a simple Express application and see how Angular Universal builds and renders our app on the server. Since Angular CLI v6 we can simple run `ng generate universal --clientProject store`, where `store` is the name of our app. In `angular.json` in the `architect.server` object we define a `configurations` object, to make sure the correct environment gets copied on a production build. To make Angular Universal with lazy loaded modules we need to add the `ModuleMapLoaderModule` to `AppServerModule`, which we get after installing ` @nguniversal/module-map-ngfactory-loader` from npm. ``` npm install --save @nguniversal/module-map-ngfactory-loader @nguniversal/express-engine ``` In the project root we implement a `server.ts` and define our simple express server. When we run the new server we see that the app gets rendered before it hits the browser.
lessonDuration 2m 36sFree
In this lesson I cover the difference between the Spread and Rest syntax using an array of animals as an example. Spread is used to expand a list of items into an array or object and Rest is often used to help deal with function arguments, but can be used in a variety of circumstances to collect all items remaining excluding the assigned ones. *Additional Resources*: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Spread_syntax https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/rest_parameters
lessonDuration 4m 50s
Knowing how conditionals work in bash open up a world of scripting possibilities. We’ll learn the basic syntax, including `if`, `else`, and `elif`. Then we'll look at a few of the "primary" operators you can leverage in a conditional statement such as `=` for string equality, `-eq` for numeric equality, and `-e` to check if a file exists. After that, we'll use conditional statements to create a function that asserts that the HTTP status of a given URL is between 200 and 299.
lessonDuration 3m 26sFree
GraphQL Yoga is an open source server utility tool based on Express that simplifies how developers build GraphQL servers. This lesson shows how quick it is to get started with Yoga by writing simple types and resolvers. It also shows you how to test and inspect a GraphQL server/schema using the GraphQL playground.
lessonDuration 3m 31sFree
A ref is short for reference. A ref is used for referencing a DOM element and interacting with that DOM node directly. Though this is a step away from React's approach of rendering through props, React's docs specify a few good use cases for Refs: 1. Managing focus, text selection, or media playback. 2. Triggering imperative animations. 3. Integrating with third-party DOM libraries. Link to the repo: https://github.com/AkashGutha/egghead-singles/tree/master/20-create-refs
lessonDuration 2m 22sFree
Learn how to use the IonIcon library in a non-Ionic web app or web page. IonIcons are now based on web components, or more specifically the Custom Element, and can be easily used in any web project.
lessonDuration 1m 55sFree
In this lesson we’ll show how to use GraphQL subscriptions coming from our AWS AppSync API to listen to real time data changes in a React application and render the new data as it comes in.
lessonDuration 3m 21sFree
With the right process in place, snapshot tests can be a great way to detect unintended changes in any part of your application that can be serialized. By grabbing a snapshot of your data in a known state, it takes a relatively small amount of code to check new output against your snapshot on each test run. When the output you want to test includes volatile data such as random number or dates, you end up updating your snapshot on every test run and your snapshot tests lose their value. Starting with Jest 23.0, the `toMatchSnapshot` method of `expect` allows you to define property matchers for specific keys in objects. Now we can specify that a value is of a certain type, while ignoring the specific value. In this lesson, we'll see an example of an object with non-deterministic values, and use property matchers in `.toMatchSnapshot()` to verify types while allowing for variation in those values.
lessonDuration 3m 33sFree
Chrome DevTools makes it incredibly easy to try out new styles in the browser before we decide to commit anything to our project. It doesn't keep those changes between refreshes by default, though. So if we're running a local dev server, it might destroy our changes before we've had a chance to save them. The new "Local overrides" tab in DevTools 65 solves this. Any time an edit is made in the DevTools, it copies the original file to a different folder, applies to the change we made to the copy, and then serves that copy instead every time the page is reloaded. A complementary feature has also been added in the same version of the DevTools: the "Changes" tab. It gives a diff of all of the changes between all the original files and our local overrides. Both these features add up to a much quicker and safer experience when trying out live CSS changes in the Chrome DevTools.
lessonDuration 3m 24sFree
Vim 8's new `:terminal` command allows for asynchronously running a terminal job in a Vim pane or window. Learn the basics of this awesome new feature to get immediate feedback without leaving your editor or breaking your flow.