반응형 Router2 ui-router 인증 ui-router.github.io/ng1/ UI-Router for AngularJS (1.x) The defacto standard for routing in AngularJS ui-router.github.io ui-router 는 AngualrJS의 라우팅 모듈입니다. 기본적으로 ng-route를 제공하지만 ui-router가 사실상의 표준이라고 합니다. AngularJS같은 SPA방식은 브라우저에서 라우팅 처리를 하기때문에 인증처리를 구현할 수 있습니다. 아래는 라우팅 코드 예제입니다. angular .module('APP', ['ui.router']) .config(function ($stateProvider) { var userAuth = JSON.parse(localStorage.getIt.. 2020. 8. 18. vuex, router로 영화 앱 만들기 예제 // index.js export default new Vuex.Store({ state: { movies: { dunkirk: { id: 'dunkirk', title: 'Dunkirk', subtitle: 'Dunkirk', description: `Miraculous evacuation of Allied soldiers from Belgium, Britain, Canada, and France, who were cut off and surrounded by the German army from the beaches and harbor of Dunkirk, France, during the Battle of France in World War II.`, largeImgSrc: `url('https:/.. 2020. 1. 6. 이전 1 다음 반응형