GithubHelp home page GithubHelp logo

teng2015 / angular-4 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from angularlovers/angularjs

1.0 1.0 0.0 40.33 MB

anguar1.5.5学习教程官方配套源码,项目中也上传了pdf格式的电子书。对学习angularjs的朋友很有帮助。(keywords:angular angularjs angularjs1.x angular1.x controller ng-app $rootScope, $state, $stateParams views directive $http $scope $timeout factory service module ui-router ngRouter templateUrl ng-model ng-controller ng-include link compile restrict ng-grid ng-animate ng-pagination rxjs system.js protractor zone.js core.js node nodejs npm packacge.json cnpm server express fs html html5 h5 dhtml css2 css3 层叠样式表 布局 postcss styus less sass bootstrap foundation gulp grunt webpack chai mocha karma jasmine http-server fis3 descript it should toBe equal loader json phantomjs koa uglifyify jest mocks source-map-loader js javascript ecmscript5 es6 babel typescript coffeescript atscript tsconfig jshint jslint csslint 前端学习使用资料笔记摘要源代码note learn 练习 study 入门basic 指导Reference 项目project framework 心得 例子 案例 example samle demo code phonecat test startkit starter promise )

Home Page: https://github.com/qq83387856/ng-book-code

License: MIT License

JavaScript 78.85% HTML 0.08% Shell 0.02% ApacheConf 20.78% CSS 0.27%

angular-4's Introduction

ng-book

#####这是ng-book上配套的代码,附带有pdf 这个分支是供自己学习用的,里面有很多东西自己有改动过,想看我学习过程记的笔记可以check本分支。
想要ng-book配套源码请check master分支。传送门 ####### ng-book 英文原版(1.5.x)和中文版(1.2.x)电子书 传送门 https://github.com/qq83387856/ng-book-code/tree/1.0/pdf ####### ng2-book 配套源码(请选择最新版本的分支下载) 传送门 https://github.com/qq83387856/ng2-book-code

#####在知识爆炸的年代,我们不愿成为知识的过客,拥抱开源文化,发挥社区的力量,让我们获得自我提升。

###angularjs 1.x学习记录 #####1.不要复用controller #####2.模块化:一切都是从模块开始的。 #####3.不要在controller中操作dom,使用指令去做 #####4.不要在controller中做数据格式化,使用表单控件去操作 #####5.不要在controller中使用数据过滤,使用filter #####6.controller之间不要互相调用,使用service #####7. $.scope和$rootScope(根作用域) 是数据模型的顶层,可以赋值、方法 向上继承 提供的方法 $watch() $apply() #####8. $emit('xxx')向上传递 $.broadcast('xx')向下传递 #####9. 调试 angular.element($0).scope() #####10.路由(ngRoute):angular-router(不可嵌套) 一般使用 ui-router 可嵌套 #####11.没有ng-model绑定双向视图,但要实时更新用$scope.$apply(func),典型场景:实时显示当前时间的功能。 #####12.angularjs表单验证要先禁用表单默认的验证方式(novalidate)

######formName.inputFieldName.$pristine 未修改 ######formName.inputFieldName.$dirty 修改过 ######formName.inputFieldName.$valid 正确的 ######formName.inputFieldName.$invalid 不合法的 ######formName.inputFieldName.$error 错误的

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.