Discards any resources used by the object. After this is called, the
object is not in a usable state and should be discarded (calls to
addListener will throw after the object is disposed).
Return the pages by building them from the appRouteDataList
This function also verify the guards and if some patterns apply then it will get the pages by calling the guard() function