Besides @Input(), we can also use properties on the @Component, to pass the data. import {Component, View, NgFor, Input} from 'angular2/angular2'; @Component({ selector: 'reddit-article' }) @View({ directives: [], template: ` <article> <div class…
There is a lot you can do with the React Native Navigator. Here, I will try to go over a few examples of what you can do with the Navigator and explain how it all works in depth. In React Native you have two choices as of now for Navigation (only one…
You can add computed properties to a component to calculate a property on the fly. The benefit of this over invoking a method is that computed properties are cached based on their dependencies. <template> <section class="container">…
You can dynamically switch between components in a template by using the reserved <component> element and dynamically bind to its is attribute. By using <keep-alive> you can tell Vue to keep the component in memory. In the previous post about…
1.Intents and Intent Filters(意图和意图过滤器) 1.0.Intents and Intent Filters(意图和意图过滤器) An Intent is a messaging object you can use to request an action from another app component. Although intents facilitate communication between components in several ways,…
This lesson will teach you the basics of setting properties in your React components. class App extends React.Component { render(){ let txt = this.props.txt return <h1>{txt}</h1> } } App.propTypes = { txt: React.PropTypes.string, cat: React.Pr…
Following content is directly reprinted from From MSI to WiX, Part 1 - Required properties Author: Alex Shevchuk Introduction Today I will start a series of posts about creating an MSI installation package using WiX. The goal here is to show what is…