acidb/mobiscroll-cli

mbsc-date demo not working - Property 'myBirthday' does not exist on type 'AboutPage'

peterennis opened this issue · 3 comments

mbsc-date demo not working.
Following instructions froh here: https://download.mobiscroll.com/trial
Using an Ionic 4.0.0-beta.15 tabs app updated to Angular 7.
Repo: https://github.com/peterennis/aetabs
Site: https://aetabs.adaept.com/tabs/(about:about)

Running local shows this result:
capture434

Prod build shows:
capture435

Hi there, sorry about the trouble.

The Ionic production build uses the AOT compiler by default, which has some stricter rules, than the JIT compiler, which is used for dev builds.
Like the error message states, the myBirthday property needs to be listed for your component, even if it does not have an initial value. E.g.:

@Component({
    selector: 'app-home',
    templateUrl: 'home.page.html',
    styleUrls: ['home.page.scss'],
})
export class HomePage {
  myBirthday: Date;
}

Let me know if this solves the issue.

This commit:
peterennis/aetabs@025c7fa
capture436
capture437

It is not clear that Birthday needs to be clicked.
Where do I find styling options?

Hi Peter, since this is not a CLI issue, could you please move your question to the Mobiscroll Forum?

Thanks a lot!