上一页 1 ··· 465 466 467 468 469 470 471 472 473 ··· 496 下一页
摘要: direictives/index.js:module.exports = function(ngModule) { //register all the directives here require('./hello')(ngModule);};directives/hello.js... 阅读全文
posted @ 2015-04-13 03:20 Zhentiw 阅读(602) 评论(0) 推荐(0)
摘要: 1. Install webpack & angular:npm install webpack angular2. Create webpack.config.js file:module.exports = { context: __dirname + '/app', entry: ... 阅读全文
posted @ 2015-04-13 02:49 Zhentiw 阅读(1798) 评论(0) 推荐(0)
摘要: It is best to start your application's localization effortsearlyin development, even if you only support one language initially. Libraries like angula... 阅读全文
posted @ 2015-03-28 23:40 Zhentiw 阅读(306) 评论(0) 推荐(0)
摘要: Mixins will allow you to apply behaviors to multiple React components.Components are the best way to reuse code in React, but sometimes very different... 阅读全文
posted @ 2015-03-25 17:16 Zhentiw 阅读(297) 评论(0) 推荐(0)
摘要: The React component lifecycle will allow you to update your components at runtime. This lesson will explore how to do that.Updating: componentWillRece... 阅读全文
posted @ 2015-03-25 16:42 Zhentiw 阅读(620) 评论(0) 推荐(0)
摘要: The previous lesson introduced the React component lifecycle mounting and unmounting. In this lesson you will learn some simple uses for these hooks. ... 阅读全文
posted @ 2015-03-24 23:01 Zhentiw 阅读(318) 评论(0) 推荐(0)
摘要: React components have a lifecycle, and you are able to access specific phases of that lifecycle. This lesson will introduce mounting and unmounting of... 阅读全文
posted @ 2015-03-24 22:45 Zhentiw 阅读(562) 评论(0) 推荐(0)
摘要: thetransferPropsTomethod lets you easily push properties into your components to easily customize attributes.From last two exmaples, we have BButton a... 阅读全文
posted @ 2015-03-24 17:23 Zhentiw 阅读(807) 评论(0) 推荐(0)
摘要: To get the add-ons, usereact-with-addons.js(and its minified counterpart) rather than the commonreact.js.https://facebook.github.io/react/docs/addons.... 阅读全文
posted @ 2015-03-24 17:05 Zhentiw 阅读(366) 评论(0) 推荐(0)
摘要: When you're building your React components, you'll probably want to access child properties of the markup.Parentcan read its children by accessing the... 阅读全文
posted @ 2015-03-24 16:53 Zhentiw 阅读(382) 评论(0) 推荐(0)
上一页 1 ··· 465 466 467 468 469 470 471 472 473 ··· 496 下一页