Project Framework Transformation
The original Jquery+ace.js framework project now needs to be changed to the now popular ANGULARJS framework
I will not angularjs, only one step at a pace of exploration of the long road, I will go up and down and quest
Just contact Angularjs give me the first feeling is always have and the earliest ASP somewhat similar to many front-end logic Many interface code together, although in the context of understanding the meaning of the keyword can be clearly understood, but there is always a feeling of not refreshing
A lot of packaging, a lot of gimmicks to people's feeling is to be a big trend and large framework for kidnapping
All right, that's the end of the crap. The new trend of the new framework comes out as long as it's popular you have to learn
Below share my experience of learning Angularjs
Beginner Angularjs I first recommend or look at the framework syntax this is no doubt, all languages are the same you have to know how it is written,
Beginners can take a look at the grammar tutorials on the Novice net (http://www.runoob.com/angularjs/angularjs-tutorial.html) to see the understanding,
Don't fantasize about remembering them (because you can't remember them in a short period of time, even if you remember that no projects have been applied for some time you will forget that you are not a genius, because genius doesn't learn this, don't be angry we have to admit that we are being led by a group of geniuses walking)
I find that I have a lot of nonsense, or to some real, really ...
I after a study, explore a variety of detours found to learn this thing or forget to learn not to apply or forget, and then still obediently through the project to learn it, of course, here you also do not expect me to paste the project, you have to build a meaningful project to start, play bad big deal again, anyway you have a lot of time to make.
Blow two knowledge points today (because I also learned these two points of knowledge)
1. Basic grammar
This is absolutely, of course, you don't learn grammar. Grammar problems look at it one or two times. Don't hold your eyes all day, that's useless. You know where to look when you use it.
Careful: When you look at grammar, remember to build a few small folders handwritten one or two grammar small case on it.
Of course, before you get to the Angularjs library file don't think to Gihub download source that fucking cheat, useless! I have been looking for a long time, did not find Angular.js or angular.min.js file you will peacefully in the Baidu inside casually make a angular.js file on it.
You also do not want to study Angularjs source code, will not go you still want to run you to fool a ghost? You have to learn how the framework is used, do not detour (because I fucking walk a big circle of detours, legs are folded)
2, the above step you also spend a half a day to make up, don't hold the grammar all day that nothing to point to the real
Don't think about it. Angular Model Controller filter service module and so on, and so on, and so on, and so on, and so on, directly first to get the project to run these things in the late application process naturally you query Baidu will be and impressive.
What about the project? Small project? Don't be ridiculous. As the IT industry elite what small projects to engage in a large variety of plug-ins all fucking think of ways to use here I recommend some of the predecessors of the blog post. Because I also follow these blog post study. It's not recommended so much to recommend a blog post because it is more recommended you are confused the Ancients cloud, can chew.
Senior Blog is http://blog.csdn.net/iamnieo/article/details/50474399 this inside there is a relatively complete source framework no matter how many 3,720 you download first
All right, what are you doing after the download?
You don't have to learn how to build a project. You've got a lot to do here, and you're going to have to step on it, or you don't know too much.
This step we focus on the route Ui-router online there is a lot of ui-router and ng-router comparison of these your own Baidu as a collection of thousands of favor in the life of IT personnel Baidu Bing is your magic wand
Are you confused about what the hell Ui-router is, forget about the first one that's got to be the son of a.
We'll start by creating a project project name. Just get another page name. You can be happy or that's all you want to say
Okay, the predecessor mentioned earlier project downloaded, you first found angular in the folder and then the folder includes all of the files are copied to your project. And then you're referencing two files in the page you just created.
<script src= ". /libs/angularjs/angular.js "></script>
<script src= ". /libs/angularjs/angular-ui-router/angular-ui-router.js "></script>
The two files above is the angular core library, which is the routing-related Library. What, you don't know what a route is? I'll take a little talk (the router knows?). The router does not know also does not matter, the route means is this road is I open this tree is I planted, wants to hit this passing on buys the road wealth, then we here the route is what? In fact, it is a visit to the page must have been in a piece of code, this code after a meal, and then access to the page you want to visit, it is idle nothing is doing it, then what is the benefit of it? Why do you care so much? That's what everybody does. You do it first (in fact, I can not sum up), in short, what you ask the mother of the Niang. )
Don't want to talk about a lot of knowledge point someone look at the update it anyway you do the routing this thing before you leave it!
I am so patient that you can see the text here I am also drunk I feel a lot of crap in the back of the article continued to update ...
You take care!
Technical Communication QQ 1203193731
ANGULARJS Study Note One