# How to access about model from a component? (outletArgs to the rescue!)

**URL:** https://meta.discourse.org/t/how-to-access-about-model-from-a-component-outletargs-to-the-rescue/335967
**Category:** Development
**Created:** [November 13, 2024, 2:53pm UTC](https://meta.discourse.org/t/how-to-access-about-model-from-a-component-outletargs-to-the-rescue/335967 "2024-11-13T14:53:44Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [November 13, 2024, 2:53pm UTC](https://meta.discourse.org/t/how-to-access-about-model-from-a-component-outletargs-to-the-rescue/335967/1 "2024-11-13T14:53:44Z")

</div>

I want to put the old about statistics on the about page.

There is a `about-wrapper` that replaces the entire about page. There is also a an `after-moderators` outlet. Neither of those works exactly right, but I think I know some solutions for that (e.g., submit a PR with some more plugin outlets in the new about template).

/about.json includes the old about statistics, but I can’t figure out how to access them in my component. I don’t see it in `this`, though I do see `Users` (which is also in about.json).

~~EDIT: Well, I thought I’d searched, but now I see [Hide public statistics from /about and about.json - #2 by merefield](https://meta.discourse.org/t/hide-public-statistics-from-about-and-about-json/335943/2), which might help?~~ No. That’s something else.

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [November 13, 2024, 3:54pm UTC](https://meta.discourse.org/t/how-to-access-about-model-from-a-component-outletargs-to-the-rescue/335967/3 "2024-11-13T15:54:03Z")

</div>

I just had a breakthrough. It’s in the outletArgs.

```javascript
import Component from "@glimmer/component";
import { dasherize } from "@ember/string";

export default class ClassicAboutStatistics extends Component {
   get model () {
    return this.args.outletArgs.model;
  }

  get shouldShow() {
    return settings.classic_about_statistics_enabled?.length > 0;
  }
}

```

So then I can access it as in the original template:

```hbs
        <td>{{number this.model.stats.topics_last_day}}</td>

```
