# Noob: no lifecycle events firing

**URL:** <https://discourse.aurelia.io/t/noob-no-lifecycle-events-firing/4197>\
**Category:** Help Requests\
**Created:** [May 3, 2021, 11:09am UTC](https://discourse.aurelia.io/t/noob-no-lifecycle-events-firing/4197 "2021-05-03T11:09:55Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![wayne](https://avatars.discourse-cdn.com/v4/letter/w/0ea827/32.png) [@wayne](https://discourse.aurelia.io/u/wayne)\
**Post date:** [May 3, 2021, 11:09am UTC](https://discourse.aurelia.io/t/noob-no-lifecycle-events-firing/4197/1 "2021-05-03T11:09:55Z")

</div>

Started a new project with

```auto
npx makes aurelia test -s webpack,typescript,app-with-router

```

To learn about lifecycles, I add to each \*.ts file in src/ (inside class):

```auto
constructor() {
       console.log('<class> constructor');
}
afterBind() {
       console.log('<class> afterBind');
}
afterAttach() {
       console.log('<class> afterAttach');
}

```

When I test using `npm start`, only the constructor logs show up. Why am I not getting the lifecycle events?

npx --version:  
7.11.1

---

<div class="post-metadata">

**Author:** ![bigopon](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.aurelia.io/bigopon/32/18_2.png) [@bigopon](https://discourse.aurelia.io/u/bigopon)\
**Post date:** [May 3, 2021, 11:26am UTC](https://discourse.aurelia.io/t/noob-no-lifecycle-events-firing/4197/2 "2021-05-03T11:26:46Z")

</div>

`afterBind` has been changed to `bound`  
`afterAttach` has been changed to `attached`

Can you try again?

Also, where did you read the documentation related to these lifecycle names?

---

<div class="post-metadata">

**Author:** ![wayne](https://avatars.discourse-cdn.com/v4/letter/w/0ea827/32.png) [@wayne](https://discourse.aurelia.io/u/wayne)\
**Post date:** [May 3, 2021, 11:36am UTC](https://discourse.aurelia.io/t/noob-no-lifecycle-events-firing/4197/3 "2021-05-03T11:36:21Z")

</div>

That worked–thanks!  
[https://hamedfathi.gitbook.io/aurelia2/getting-started/components](https://hamedfathi.gitbook.io/aurelia2/getting-started/components)

Where should I find this info?

---

<div class="post-metadata">

**Author:** ![bigopon](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.aurelia.io/bigopon/32/18_2.png) [@bigopon](https://discourse.aurelia.io/u/bigopon)\
**Post date:** [May 3, 2021, 12:01pm UTC](https://discourse.aurelia.io/t/noob-no-lifecycle-events-firing/4197/4 "2021-05-03T12:01:16Z")

</div>

For lifecycles, you can find the information here [Components Lifecycles - The Aurelia Docs](https://docs.aurelia.io/getting-started/components/component-lifecycles)

I guess @HamedFathi been busy with updating the migration doc

---

<div class="post-metadata">

**Author:** ![HamedFathi](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.aurelia.io/hamedfathi/32/2099_2.png) [@HamedFathi](https://discourse.aurelia.io/u/HamedFathi)\
**Post date:** [May 4, 2021, 9:08am UTC](https://discourse.aurelia.io/t/noob-no-lifecycle-events-firing/4197/5 "2021-05-04T09:08:17Z")

</div>

@wayne My Aurelia docs was a test just for API part.

 ![image](https://canada1.discourse-cdn.com/flex027/uploads/aurelia/original/2X/8/855a8daa73515b966ba4b28836f361b6dfa7d3c7.png)

Ignore it. As @bigopon mentioned the official doc available under [https://docs.aurelia.io/](https://docs.aurelia.io/) URL.

About side-by-side comparison (v1 vs v2) you can follow [Components - The Aurelia Docs](https://docs.aurelia.io/side-by-side-comparison/components) too.

---

<div class="post-metadata">

**Author:** ![case112](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.aurelia.io/case112/32/2186_2.png) [@case112](https://discourse.aurelia.io/u/case112)\
**Post date:** [December 28, 2021, 1:20pm UTC](https://discourse.aurelia.io/t/noob-no-lifecycle-events-firing/4197/6 "2021-12-28T13:20:43Z")

</div>

I wanted to mention that I stumbled upon the same issue as @wayne. When I google ‘aurelia 1 to 2’:

 ![google-search](https://canada1.discourse-cdn.com/flex027/uploads/aurelia/original/2X/2/2848fb99a8f7994af27356978278a2ec5268bc81.png)

And if I opened the first link then a [Gitbook site](https://hamedfathi.gitbook.io/migration/) opens up that has out of date info about the migration process and lifecycle events. It might be a good idea to get it up to date or remove it to avoid some confusion?
