Skip to content
Snippets Groups Projects
Commit 58717f44 authored by jvanboxtel@wisc.edu's avatar jvanboxtel@wisc.edu
Browse files

ROENROLL-1212

parent f54595db
No related branches found
No related tags found
No related merge requests found
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
"version": 1, "version": 1,
"newProjectRoot": "projects", "newProjectRoot": "projects",
"projects": { "projects": {
"ia-angular2-seed-project": { "course-search-enroll-fe": {
"root": "", "root": "",
"sourceRoot": "src", "sourceRoot": "src",
"projectType": "application", "projectType": "application",
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
"build": { "build": {
"builder": "@angular-devkit/build-angular:browser", "builder": "@angular-devkit/build-angular:browser",
"options": { "options": {
"outputPath": "dist/ia-angular2-seed-project", "outputPath": "dist/course-search-enroll-fe",
"index": "src/index.html", "index": "src/index.html",
"main": "src/main.ts", "main": "src/main.ts",
"polyfills": "src/polyfills.ts", "polyfills": "src/polyfills.ts",
...@@ -58,18 +58,18 @@ ...@@ -58,18 +58,18 @@
"serve": { "serve": {
"builder": "@angular-devkit/build-angular:dev-server", "builder": "@angular-devkit/build-angular:dev-server",
"options": { "options": {
"browserTarget": "ia-angular2-seed-project:build" "browserTarget": "course-search-enroll-fe:build"
}, },
"configurations": { "configurations": {
"production": { "production": {
"browserTarget": "ia-angular2-seed-project:build:production" "browserTarget": "course-search-enroll-fe:build:production"
} }
} }
}, },
"extract-i18n": { "extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n", "builder": "@angular-devkit/build-angular:extract-i18n",
"options": { "options": {
"browserTarget": "ia-angular2-seed-project:build" "browserTarget": "course-search-enroll-fe:build"
} }
}, },
"test": { "test": {
...@@ -103,7 +103,7 @@ ...@@ -103,7 +103,7 @@
} }
} }
}, },
"ia-angular2-seed-project-e2e": { "course-search-enroll-fe-e2e": {
"root": "e2e/", "root": "e2e/",
"projectType": "application", "projectType": "application",
"architect": { "architect": {
...@@ -111,11 +111,11 @@ ...@@ -111,11 +111,11 @@
"builder": "@angular-devkit/build-angular:protractor", "builder": "@angular-devkit/build-angular:protractor",
"options": { "options": {
"protractorConfig": "e2e/protractor.conf.js", "protractorConfig": "e2e/protractor.conf.js",
"devServerTarget": "ia-angular2-seed-project:serve" "devServerTarget": "course-search-enroll-fe:serve"
}, },
"configurations": { "configurations": {
"production": { "production": {
"devServerTarget": "ia-angular2-seed-project:serve:production" "devServerTarget": "course-search-enroll-fe:serve:production"
} }
} }
}, },
...@@ -131,5 +131,5 @@ ...@@ -131,5 +131,5 @@
} }
} }
}, },
"defaultProject": "ia-angular2-seed-project" "defaultProject": "course-search-enroll-fe"
} }
\ No newline at end of file
...@@ -10,7 +10,7 @@ export class AppComponent { ...@@ -10,7 +10,7 @@ export class AppComponent {
} }
document.addEventListener('WebComponentsReady', function() { document.addEventListener('WebComponentsReady', function() {
let customEvent = new CustomEvent('myuw-login', { const customEvent = new CustomEvent('myuw-login', {
detail: { detail: {
person: { person: {
'firstName': 'Bucky' 'firstName': 'Bucky'
......
...@@ -4,21 +4,21 @@ import { NgModule, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core'; ...@@ -4,21 +4,21 @@ import { NgModule, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import { AppRoutingModule } from './app.routing.module'; import { AppRoutingModule } from './app.routing.module';
import { AppComponent } from './app.component'; import { AppComponent } from './app.component';
import { HomeComponent } from './home/home.component';
import { CoreModule } from './core/core.module'; import { CoreModule } from './core/core.module';
import { SharedModule } from './shared/shared.module'; import { SharedModule } from './shared/shared.module';
import { DegreePlannerModule } from './degree-planner/degree-planner.module';
@NgModule({ @NgModule({
imports: [ imports: [
BrowserModule, BrowserModule,
BrowserAnimationsModule, BrowserAnimationsModule,
AppRoutingModule, DegreePlannerModule,
CoreModule, CoreModule,
SharedModule SharedModule,
AppRoutingModule
], ],
declarations: [ declarations: [
AppComponent, AppComponent,
HomeComponent
], ],
providers: [], providers: [],
bootstrap: [ AppComponent ], bootstrap: [ AppComponent ],
......
...@@ -2,10 +2,12 @@ import { NgModule } from '@angular/core'; ...@@ -2,10 +2,12 @@ import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router'; import { Routes, RouterModule } from '@angular/router';
import { AppComponent } from './app.component'; import { AppComponent } from './app.component';
import { HomeComponent } from './home/home.component';
const routes: Routes = [ const routes: Routes = [
{ path: '', component: HomeComponent } {
path: '',
loadChildren: './degree-planner/degree-planner.module#DegreePlannerModule'
}
]; ];
@NgModule({ @NgModule({
......
<p>
degree-planner works!
</p>
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { DegreePlannerComponent } from './degree-planner.component';
describe('DegreePlannerComponent', () => {
let component: DegreePlannerComponent;
let fixture: ComponentFixture<DegreePlannerComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ DegreePlannerComponent ]
}).compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(DegreePlannerComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});
import { Component, OnInit } from '@angular/core'; import { Component, OnInit } from '@angular/core';
@Component({ @Component({
selector: 'app-home', selector: 'app-degree-planner',
templateUrl: './home.component.html', templateUrl: './degree-planner.component.html',
styleUrls: ['./home.component.scss'] styleUrls: ['./degree-planner.component.css']
}) })
export class HomeComponent implements OnInit { export class DegreePlannerComponent implements OnInit {
constructor() { } constructor() { }
......
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { DegreePlannerComponent } from './degree-planner.component';
import { SharedModule } from '../shared/shared.module';
import { DegreePlannerRoutingModule } from './degree-planner.routing.module';
@NgModule({
imports: [
CommonModule,
SharedModule,
DegreePlannerRoutingModule
],
declarations: [
DegreePlannerComponent
]
})
export class DegreePlannerModule { }
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { DegreePlannerComponent } from './degree-planner.component';
const routes: Routes = [
{ path: '', component: DegreePlannerComponent },
];
@NgModule({
imports: [RouterModule.forChild(routes)],
exports: [RouterModule]
})
export class DegreePlannerRoutingModule { }
<p>
home works!
</p>
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { HomeComponent } from './home.component';
describe('HomeComponent', () => {
let component: HomeComponent;
let fixture: ComponentFixture<HomeComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ HomeComponent ]
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(HomeComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment