Skip to main content

Posts

Showing posts from April, 2019

SSH Command using Putty

List of Basic SSH Commands: pscp "C:\Users\Zafar Hayat\ac.txt" root@111.111.111:/home/admi.com/public_htm/public/images/test1 SSH Command Explanation ls -la Show directory contents (list the names of files). -la with rights cd Change Directory. mkdir Create a new folder (directory). touch Create a new file. rm/ rmdir Remove a file./ To remove forlder cat Show contents of a file. pwd Show current directory (full path to where you are right now). cp Copy file/folder. mv Move file/folder. grep Search for a specific phrase in file/lines. find Search files and directories. vi/nano Text editors. history Show last 50 used commands. clear Clear the terminal screen. tar Create & Unpack compressed archives. wget Download files from the internet. du zip [zip file name] * unzip screenshot.zip Get file size. To zip file to unzip file

Best practices in Angular

Angular CLI Files and Folders in Angular Project File Naming Class Names Folder Structure Angular Coding Practices Single Responsibility Principle Using Interfaces Using Immutability Small Functions and Access Modifiers Constructor Usage Safe Navigation Operator (?) in HTML Template Module Organization and Lazy Loading Multi Modules in Application Routing Module Lazy Loading Shared module Components, Decorators, Directives, and Lifecycle Component’s Files Separation Reusable Components and Decorators Code Simplicity in Components Using Directives Using Lifecycle Hooks Services Service Usage Single Responsibility Service Providing HTTP Using the HttpClient Module Services to Work With HTTP Requests Environment Variables Conclusion Angular CLI We would always recommend using the Angular CLI tool while working with the Angular project. Why is that? Well, it will increase our productivity for sure. Angular CLI has its own set of comm...