How do I pass data from one component to another in angular 4?

How do I pass data from one component to another in angular 4? in the parent component: Import ViewChild() and ngAfterViewInit() and implement the lifecycle hook. import { ViewChild, AfterViewInit } from ‘@angular/core’; Import the child component. Use the @ViewChild() directive. Declare a variable that holds the data. In ngAfterViewInit() call the variable that holds […]

Read More

Is fluid mechanics and hydraulics same?

Is fluid mechanics and hydraulics same? Fluid mechanics provides the theoretical foundation for hydraulics, which focuses on the applied engineering using the properties of fluids. In its fluid power applications, hydraulics is used for the generation, control, and transmission of power by the use of pressurized liquids. What are fluid machines or hydraulic machines? The […]

Read More