Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49076

Cannot read property 'contains' of null ionic.bundle.js:26794

$
0
0

@tactilesolutions wrote:

Error as above, i'm doing ionic serve and have a "$state.go('tab.dashboard');"

Was working fine. Can't see what i've changed to make it not work!

Controller for dash is DashCtrl which is straight forward:

.controller('DashCtrl', function($scope,$state,$localStorage,$sessionStorage) {

$scope.$session = $sessionStorage;
console.log($sessionStorage.user.email);

var user_type = $sessionStorage.user.type;

if(user_type == "standard") {
$(".standard_user").toggle();
} else if(user_type == "tenant") {
$(".tenant_user").toggle();
} else if(user_type == "landlord") {
$(".landlord_user").toggle();
} else if(user_type == "agent") {
$(".agent_user").toggle();
}

//we need to add the user id to all the myproperties links
var currenthref = $(".myproperties").attr("href");
currenthref = currenthref + $sessionStorage.user.id;
$(".myproperties").attr("href",currenthref);

})

Anybody come across this before?

Posts: 2

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 49076

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>