Go check it out

It has very few functions at present

blog-with-angular.vercel.app/

This paper links: blog – with – presents. Vercel. App/interview / 4…

preface

Why did I choose Angular

With everyone talking about React and Vue, I chose Angular. I chose Angular in the first place to learn typescript.

React and Vue are well known, but Angular? You may not be able to tell angular from angular.js. Here I explain that Angular is a modern MVVM framework and angular.js is an outdated framework. Although the two names are similar, they are products of different eras.

Angular’s strengths are also its weaknesses

Angular is a MVVM framework that uses typescript as its writing language and uses long-established concepts of dependency injection, inversion of control, and so on. As a large and complete framework, after using the official CLI build project, it will be the unit test, integration test to build good. If you want to make HTTP requests, all you need to do is import an HttpClientModule (it’s already installed). If you want state management, you can just use the built-in Service and rx.js. Only one command is required to generate the component.

But many people find Angular too heavy. There’s no need for the front end to copy the back end, or even engineer it. . But now the front end is definitely going engineering. For example, the react project can be create-react-app, umi-cli, and nextjs-cli. There are also various CLI for creating vUE projects. React and Vue are going the way of Angular engineering many years ago! Everyone is tightening the specification, so it’s okay to use Angular from an engineering point of view.

The truth is angular is too hard

But first, is Angular really hard to learn?

Is your difficulty in learning reflected in the tutorial on the official website? I admit, the Angular tutorial is hard to understand (mostly because of the files). (Getting started is no longer a hero’s journey.) The React tic-Tac-toe tutorial is hard to understand. Vue is easy to understand (because Vue doesn’t teach you to make a small demo).

Angular comes and teaches you all the “basics”. Includes components, passing values, directives, event bindings, pipes, services, routing, HTTP, rx.js. Being a little white is really hard to accept! So look at Angular documentation over and over again. And the react? As a repository of “community prosperity”, all programs are provided by the community. For HTTP requests, for example, do you want to use axios or GOT or JS fetch? Route management, what to use; What does state management use (you can’t pass components layer by layer). Angular takes care of that, so you’re better off using the official solution.

Angular is hard to get started with, react is easier to get started with. But the HTTP library, the state management library, the routing library are all things you have to look at. I think it would be more difficult to learn React if the function was the same.

To the chase

I don’t really want to be a blogger

My original intention was to make a front-end knowledge base. Recently in preparation for internship, encountered some problems do not understand baidu search. But baidu is mostly CSDN and other platform articles (reprinted). So I want to make a knowledge base. I’ve used knowledge bases made by others before, in the form of applets. But this little program didn’t give me a very good experience hahaha. It is mainly reflected in the sliding browsing, because the logical Settings are not good often directly slide to the next problem.

Current problems

  • Positioning is not clear. I don’t know if it’s a blog or a knowledge base.
  • Flow drainage problem, SPA application SEO how to do.
  • When to buy domain name online (domain name is really expensive ah).
  • How to import knowledge (I want to write some of their own understanding of the original knowledge bar, high quality but not much)
  • There’s still a lot of work to be done.

later

In fact, I wanted to write something about my experience of writing websites in Angular, and somehow I ended up writing an Angular Amway article. Change this article later. It’s a mess. Excuse me.

Blogs I have written (used)

I started with the front end and I worked with a lot of blogs. At the beginning of hazy, I wanted to make a blog for myself. I used Hexo, I used Google’s high-performance blog Template, and I built my own blog using React, but none of them got off the ground. But blog for blog’s sake. But the starting point of this blog is different. I want to share my knowledge with everyone and help more people. And the ability to bring Angular to more people.