11 Commits

Author SHA1 Message Date
22034b8ac4 demos(ngmodule): update to ngmodule 2016-09-13 14:54:22 -05:00
55a0257dbc refactor(colors): color should be added as an input instead of directly adding the color to the component
BREAKING CHANGES:

Colors should be passed in the `color` input on components, not added
individually as an attribute on the component.

For example:

```
<ion-tabs primary>
```

Becomes

```
<ion-tabs color=”primary”>
```

Or to bind an expression to color:

```
<ion-navbar [color]="barColor">
   ...
</ion-navbar>
```

```ts
@Component({
  templateUrl: 'build/pages/about/about.html'
})
export class AboutPage {
  barColor: string;

  constructor(private nav: NavController, platform: Platform) {
    this.barColor = platform.is('android') ? 'primary' : 'light';
  }
}
```

Reason for this change:
It was difficult to dynamically add colors to components, especially if
the name of the color attribute was unknown in the template.
This change keeps the css flat since we aren’t chaining color
attributes on components and instead we assign a class to the component
which includes the color’s name.
This allows you to easily toggle a component between multiple colors.
Speeds up performance because we are no longer reading through all of
the attributes to grab the color ones.

references #7467
closes #7087 closes #7401 closes #7523
2016-08-23 17:16:55 -04:00
05c7b8f0d7 docs(demos): update API demos so they all have ion-navs
- add spacing between imports
- alphabetize imports
- removed app.html files in favor of an inline ion-nav
- cleaned up config demo so it uses proper syntax
- use file name main.html for the first page for the demo
- name the app ApiDemoApp and first page ApiDemoPage
- replace the ion-toolbars with ion-navbars

closes #7019
closes driftyco/ionic-site#647
2016-06-22 14:45:49 -04:00
33672aef62 demos(header): update header markup 2016-06-17 11:39:59 -05:00
774ab83637 demos(bootstrap): update to use ionicBootstrap 2016-05-31 15:49:56 -05:00
1cdf10238f docs(api demos): update api demos 2016-02-24 11:18:51 -05:00
87364db977 chore(demos): update toggle demo 2016-02-18 14:49:20 -06:00
ec106e989e docs(demos): converting navbars to toolbars
references #5311
2016-02-03 15:16:41 -05:00
59da895ea0 docs(demos): fix demos to have same class name and remove files that aren't needed anymore
references #5311
2016-02-03 14:26:25 -05:00
cefc305dd3 docs(): update for alpha52 2016-01-27 11:06:04 -07:00
54c2b76764 docs(demos): update toggle 2016-01-14 16:07:54 -06:00