facebook - Show the onboarding screen to first time user in ember -
i have fb login integrated in ember app.i have used ember-simple-auth implement this.i facing problem first time user.i have show onboarding screen first time user.for server sending sign_up flag false first time user when log in , when finishes onboarding screen make api call server make true.from next time onwards if user log in again sign_up true , should move him directly feed screen rather showing him onboarding screen.
i not sure how this.is there article it?.please share code how it.thanks in advance.you life saver.
you can create computed property in controller observes sign_up flag this.
issignedup: ember.computed('sign_up', function(){ return this.get('sign_up'); }) now in template, can have onboard screen conditional rendering this:
{{#if issignedup}} <h1>you signed in</h1> {{else}} <h1>this place put onboard screen</h1> {{/if}} note: can directly use sign_up flag in template conditional rendering. have used computed property show you. hope helps.
Comments
Post a Comment