I have a login.html page in Spring. I have a controller to serve this page at port 8080. How can I get this complete page using ember?
This is my controller:
@Controller
public class LoginController {
LoginService loginService;
public LoginController(LoginService loginService) {
this.loginService = loginService;
}
@RequestMapping("/login")
public String showJoke(Model model){
model.addAttribute("date",loginService.getDate());
return "login";
}
}
I didn't write any code on ember yet because I don't know where to write them( on controller or model or component)
Aucun commentaire:
Enregistrer un commentaire