Question: I want to make a button in an activity disabled if it is intented from a certain button and otherwise enabled if and it is intented from some other class.What I am saying will be clear after reading the code.

This is the function to intent the class containing the button.

```
showperson.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                falses=true;
                ob.truth=false;
                Toast.makeText(home_page.this, "doneit"+ob.truth, Toast.LENGTH_SHORT).show();
//                Button clik=fb.getButton();
//                clik.setVisibility(View.GONE);
                 Intent to=new Intent(home_page.this,Form.class);
                to.putExtra("buttonclik",false);
                startActivity(to);

            }
        });

```

Answer: 
I have the same issue, and just discovered that for some reason, in some ts file it is called using capitalize letter, then I renamed it for lowercase and it works.

You can try also removing this model ts file and creating again with angular-CLI.
It's all about the path of files, make sure it is **case-sensitive**